From 3a291e1520e179989884e3cff3f80e8c36f4c76a Mon Sep 17 00:00:00 2001 From: jmxd <838425805@qq.com> Date: Sun, 9 Apr 2023 11:29:37 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E5=85=BC=E5=AE=B9spring=20boot=20data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../servlet/javaee/MagicJavaEEServletConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEServletConfiguration.java b/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEServletConfiguration.java index c11f33e1..23468184 100644 --- a/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEServletConfiguration.java +++ b/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEServletConfiguration.java @@ -48,8 +48,8 @@ public void addInterceptors(InterceptorRegistry registry) { @Override public void addArgumentResolvers(List resolvers) { - resolvers.add(new MagicJavaEEHttpServletRequest.ArgumentsResolver()); - resolvers.add(new MagicJavaEEHttpServletResponse.ArgumentsResolver()); + resolvers.add(0, new MagicJavaEEHttpServletRequest.ArgumentsResolver()); + resolvers.add(0, new MagicJavaEEHttpServletResponse.ArgumentsResolver()); } @Bean From c62ba28d9a4623aa72515ba2886eb8bc1a46d35f Mon Sep 17 00:00:00 2001 From: jmxd <838425805@qq.com> Date: Sat, 15 Apr 2023 09:53:17 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8E=9F=E7=94=9F`Servle?= =?UTF-8?q?t`=E8=8E=B7=E5=8F=96=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../magicapi/servlet/jakarta/MagicJakartaCookie.java | 5 +++-- .../servlet/jakarta/MagicJakartaHttpServletRequest.java | 5 +++++ .../servlet/jakarta/MagicJakartaHttpServletResponse.java | 8 ++++++-- .../magicapi/servlet/jakarta/MagicJakartaHttpSession.java | 7 ++++++- .../magicapi/servlet/javaee/MagicJavaEECookie.java | 5 +++-- .../servlet/javaee/MagicJavaEEHttpServletRequest.java | 5 +++++ .../servlet/javaee/MagicJavaEEHttpServletResponse.java | 8 ++++++-- .../magicapi/servlet/javaee/MagicJavaEEHttpSession.java | 7 ++++++- .../org/ssssssss/magicapi/core/servlet/MagicCookie.java | 2 ++ .../magicapi/core/servlet/MagicHttpServletRequest.java | 2 ++ .../magicapi/core/servlet/MagicHttpServletResponse.java | 2 ++ .../ssssssss/magicapi/core/servlet/MagicHttpSession.java | 2 ++ 12 files changed, 48 insertions(+), 10 deletions(-) diff --git a/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaCookie.java b/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaCookie.java index c6fc7ae9..9e1872e5 100644 --- a/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaCookie.java +++ b/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaCookie.java @@ -21,7 +21,8 @@ public String getValue() { return cookie.getValue(); } - public Cookie getOriginCookie(){ - return cookie; + @Override + public T getCookie() { + return (T) cookie; } } diff --git a/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaHttpServletRequest.java b/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaHttpServletRequest.java index a504bd5d..9accf25c 100644 --- a/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaHttpServletRequest.java +++ b/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaHttpServletRequest.java @@ -116,6 +116,11 @@ public Principal getUserPrincipal() { return request.getUserPrincipal(); } + @Override + public T getRequest() { + return (T) request; + } + public static class ArgumentsResolver implements HandlerMethodArgumentResolver { diff --git a/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaHttpServletResponse.java b/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaHttpServletResponse.java index a66b101b..1db0d517 100644 --- a/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaHttpServletResponse.java +++ b/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaHttpServletResponse.java @@ -39,8 +39,7 @@ public void sendRedirect(String location) throws IOException { @Override public void addCookie(MagicCookie cookie) { - MagicJakartaCookie javaEECookie = (MagicJakartaCookie) cookie; - response.addCookie(javaEECookie.getOriginCookie()); + response.addCookie(cookie.getCookie()); } @Override @@ -53,6 +52,11 @@ public Collection getHeaderNames() { return response.getHeaderNames(); } + @Override + public T getResponse() { + return (T) response; + } + public static class ArgumentsResolver implements HandlerMethodArgumentResolver { @Override diff --git a/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaHttpSession.java b/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaHttpSession.java index b24b509c..abd9b0c6 100644 --- a/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaHttpSession.java +++ b/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaHttpSession.java @@ -6,7 +6,7 @@ public class MagicJakartaHttpSession implements MagicHttpSession { - private HttpSession session; + private final HttpSession session; public MagicJakartaHttpSession(HttpSession session) { this.session = session; @@ -21,4 +21,9 @@ public Object getAttribute(String key) { public void setAttribute(String key, Object value) { session.setAttribute(key, value); } + + @Override + public T getSession() { + return (T) session; + } } diff --git a/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEECookie.java b/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEECookie.java index 52a81746..8192b64a 100644 --- a/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEECookie.java +++ b/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEECookie.java @@ -22,7 +22,8 @@ public String getValue() { return cookie.getValue(); } - public Cookie getOriginCookie() { - return cookie; + @Override + public T getCookie() { + return (T) cookie; } } diff --git a/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEHttpServletRequest.java b/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEHttpServletRequest.java index 586ea054..2c8e182d 100644 --- a/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEHttpServletRequest.java +++ b/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEHttpServletRequest.java @@ -116,6 +116,11 @@ public Principal getUserPrincipal() { return request.getUserPrincipal(); } + @Override + public T getRequest() { + return (T) request; + } + public static class ArgumentsResolver implements HandlerMethodArgumentResolver { @Override diff --git a/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEHttpServletResponse.java b/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEHttpServletResponse.java index 04b4ce79..6861dcb0 100644 --- a/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEHttpServletResponse.java +++ b/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEHttpServletResponse.java @@ -39,8 +39,7 @@ public void sendRedirect(String location) throws IOException { @Override public void addCookie(MagicCookie cookie) { - MagicJavaEECookie javaEECookie = (MagicJavaEECookie) cookie; - response.addCookie(javaEECookie.getOriginCookie()); + response.addCookie(cookie.getCookie()); } @Override @@ -53,6 +52,11 @@ public Collection getHeaderNames() { return response.getHeaderNames(); } + @Override + public T getResponse() { + return (T) response; + } + public static class ArgumentsResolver implements HandlerMethodArgumentResolver { diff --git a/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEHttpSession.java b/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEHttpSession.java index a64d03d0..d5c7db03 100644 --- a/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEHttpSession.java +++ b/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEHttpSession.java @@ -6,7 +6,7 @@ public class MagicJavaEEHttpSession implements MagicHttpSession { - private HttpSession session; + private final HttpSession session; public MagicJavaEEHttpSession(HttpSession session) { this.session = session; @@ -21,4 +21,9 @@ public Object getAttribute(String key) { public void setAttribute(String key, Object value) { session.setAttribute(key, value); } + + @Override + public T getSession() { + return (T) session; + } } diff --git a/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicCookie.java b/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicCookie.java index e3b66cf7..73e41246 100644 --- a/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicCookie.java +++ b/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicCookie.java @@ -5,4 +5,6 @@ public interface MagicCookie { String getName(); String getValue(); + + T getCookie(); } diff --git a/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicHttpServletRequest.java b/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicHttpServletRequest.java index 21f620b6..3590a5d3 100644 --- a/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicHttpServletRequest.java +++ b/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicHttpServletRequest.java @@ -41,6 +41,8 @@ public interface MagicHttpServletRequest { MultipartRequest resolveMultipart(); Principal getUserPrincipal(); + + T getRequest(); } diff --git a/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicHttpServletResponse.java b/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicHttpServletResponse.java index 44f03802..fd719f75 100644 --- a/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicHttpServletResponse.java +++ b/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicHttpServletResponse.java @@ -17,4 +17,6 @@ public interface MagicHttpServletResponse { public OutputStream getOutputStream() throws IOException; public Collection getHeaderNames(); + + public T getResponse(); } diff --git a/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicHttpSession.java b/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicHttpSession.java index 90dfce2b..3d0c9573 100644 --- a/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicHttpSession.java +++ b/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicHttpSession.java @@ -5,4 +5,6 @@ public interface MagicHttpSession { Object getAttribute(String key); void setAttribute(String key, Object value); + + T getSession(); } From 26ab11eb011f04b44edf7d5c7117408d4d761d02 Mon Sep 17 00:00:00 2001 From: jmxd <838425805@qq.com> Date: Sat, 15 Apr 2023 09:58:47 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E9=9B=86=E7=BE=A4?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cluster/MagicClusterConfiguration.java | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/magic-api-plugins/magic-api-plugin-cluster/src/main/java/org/ssssssss/magicapi/cluster/MagicClusterConfiguration.java b/magic-api-plugins/magic-api-plugin-cluster/src/main/java/org/ssssssss/magicapi/cluster/MagicClusterConfiguration.java index ee7ed3c1..7e2b69ad 100644 --- a/magic-api-plugins/magic-api-plugin-cluster/src/main/java/org/ssssssss/magicapi/cluster/MagicClusterConfiguration.java +++ b/magic-api-plugins/magic-api-plugin-cluster/src/main/java/org/ssssssss/magicapi/cluster/MagicClusterConfiguration.java @@ -2,15 +2,11 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.ObjectProvider; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.RedisConnectionFactory; -import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.data.redis.listener.ChannelTopic; import org.springframework.data.redis.listener.RedisMessageListenerContainer; import org.ssssssss.magicapi.core.config.MagicAPIProperties; @@ -19,9 +15,10 @@ import org.ssssssss.magicapi.core.model.Plugin; import org.ssssssss.magicapi.core.service.MagicAPIService; import org.ssssssss.magicapi.core.service.MagicNotifyService; +import org.ssssssss.magicapi.redis.RedisModule; import org.ssssssss.magicapi.utils.JsonUtils; -import java.util.Objects; +import java.util.Arrays; @EnableConfigurationProperties(ClusterConfig.class) @@ -32,14 +29,11 @@ public class MagicClusterConfiguration implements MagicPluginConfiguration { private final MagicAPIProperties properties; - private final StringRedisTemplate stringRedisTemplate; - private final Logger logger = LoggerFactory.getLogger(MagicClusterConfiguration.class); - public MagicClusterConfiguration(MagicAPIProperties properties, ClusterConfig config, ObjectProvider stringRedisTemplateProvider) { + public MagicClusterConfiguration(MagicAPIProperties properties, ClusterConfig config) { this.properties = properties; this.config = config; - this.stringRedisTemplate = stringRedisTemplateProvider.getIfAvailable(); } @Override @@ -52,8 +46,8 @@ public Plugin plugin() { */ @Bean @ConditionalOnMissingBean - public MagicNotifyService magicNotifyService() { - return magicNotify -> stringRedisTemplate.convertAndSend(config.getChannel(), Objects.requireNonNull(JsonUtils.toJsonString(magicNotify))); + public MagicNotifyService magicNotifyService(RedisModule redisModule) { + return magicNotify -> redisModule.execute("publish", Arrays.asList(config.getChannel(), JsonUtils.toJsonString(magicNotify))); } /** From 8d848d8ee1130b1ff43114908c1e1aa008a55c67 Mon Sep 17 00:00:00 2001 From: jmxd <838425805@qq.com> Date: Sun, 30 Apr 2023 10:17:14 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=9A=84=E5=85=BC=E5=AE=B9=E6=80=A7=EF=BC=8C?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=9F=90=E4=BA=9B=E6=83=85=E5=86=B5=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E7=9A=84=E6=96=87=E4=BB=B6=E6=A0=BC=E5=BC=8F=E4=B8=8D?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MagicJakartaHttpServletResponse.java | 10 +++++ .../MagicJavaEEHttpServletResponse.java | 10 +++++ .../servlet/MagicHttpServletResponse.java | 4 ++ .../core/web/MagicWorkbenchController.java | 39 ++++++++++--------- 4 files changed, 45 insertions(+), 18 deletions(-) diff --git a/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaHttpServletResponse.java b/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaHttpServletResponse.java index 1db0d517..116b0ba0 100644 --- a/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaHttpServletResponse.java +++ b/magic-api-servlet/magic-api-servlet-jakarta/src/main/java/org/ssssssss/magicapi/servlet/jakarta/MagicJakartaHttpServletResponse.java @@ -42,6 +42,16 @@ public void addCookie(MagicCookie cookie) { response.addCookie(cookie.getCookie()); } + @Override + public void setContentType(String contentType) { + response.setContentType(contentType); + } + + @Override + public void setCharacterEncoding(String characterEncoding) { + response.setCharacterEncoding(characterEncoding); + } + @Override public OutputStream getOutputStream() throws IOException { return response.getOutputStream(); diff --git a/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEHttpServletResponse.java b/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEHttpServletResponse.java index 6861dcb0..fb3ed4cd 100644 --- a/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEHttpServletResponse.java +++ b/magic-api-servlet/magic-api-servlet-javaee/src/main/java/org/ssssssss/magicapi/servlet/javaee/MagicJavaEEHttpServletResponse.java @@ -42,6 +42,16 @@ public void addCookie(MagicCookie cookie) { response.addCookie(cookie.getCookie()); } + @Override + public void setContentType(String contentType) { + response.setContentType(contentType); + } + + @Override + public void setCharacterEncoding(String characterEncoding) { + response.setCharacterEncoding(characterEncoding); + } + @Override public OutputStream getOutputStream() throws IOException { return response.getOutputStream(); diff --git a/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicHttpServletResponse.java b/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicHttpServletResponse.java index fd719f75..f775cc86 100644 --- a/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicHttpServletResponse.java +++ b/magic-api/src/main/java/org/ssssssss/magicapi/core/servlet/MagicHttpServletResponse.java @@ -14,6 +14,10 @@ public interface MagicHttpServletResponse { public void addCookie(MagicCookie cookie); + public void setContentType(String contentType); + + public void setCharacterEncoding(String characterEncoding); + public OutputStream getOutputStream() throws IOException; public Collection getHeaderNames(); diff --git a/magic-api/src/main/java/org/ssssssss/magicapi/core/web/MagicWorkbenchController.java b/magic-api/src/main/java/org/ssssssss/magicapi/core/web/MagicWorkbenchController.java index 5f02c403..03001b4e 100644 --- a/magic-api/src/main/java/org/ssssssss/magicapi/core/web/MagicWorkbenchController.java +++ b/magic-api/src/main/java/org/ssssssss/magicapi/core/web/MagicWorkbenchController.java @@ -5,8 +5,6 @@ import org.slf4j.LoggerFactory; import org.springframework.core.io.ClassPathResource; import org.springframework.http.HttpHeaders; -import org.springframework.http.MediaType; -import org.springframework.http.ResponseEntity; import org.springframework.util.ResourceUtils; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -22,7 +20,6 @@ import org.ssssssss.magicapi.core.servlet.MagicHttpServletRequest; import org.ssssssss.magicapi.core.servlet.MagicHttpServletResponse; import org.ssssssss.magicapi.modules.db.SQLModule; -import org.ssssssss.magicapi.modules.servlet.ResponseModule; import org.ssssssss.magicapi.utils.ClassScanner; import org.ssssssss.magicapi.utils.IoUtils; import org.ssssssss.magicapi.utils.SignUtils; @@ -33,10 +30,8 @@ import org.ssssssss.script.parsing.Span; import org.ssssssss.script.parsing.Tokenizer; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.io.IOException; +import java.io.*; +import java.net.URLEncoder; import java.nio.file.Files; import java.nio.file.Paths; import java.util.*; @@ -256,37 +251,45 @@ public JsonBean>> todo(MagicHttpServletRequest request) } @RequestMapping(value = "/config-js") - @ResponseBody @Valid(requireLogin = false) - public ResponseEntity configJs() { - ResponseEntity.BodyBuilder responseBuilder = ResponseEntity.ok().contentType(MediaType.parseMediaType("application/javascript")); + public void configJs(MagicHttpServletResponse response) throws IOException { + response.setContentType("application/javascript"); + response.setCharacterEncoding("UTF-8"); + byte[] bytes = "var MAGIC_EDITOR_CONFIG = {}".getBytes(); if (configuration.getEditorConfig() != null) { try { String path = configuration.getEditorConfig(); if (path.startsWith(ResourceUtils.CLASSPATH_URL_PREFIX)) { path = path.substring(ResourceUtils.CLASSPATH_URL_PREFIX.length()); - return responseBuilder.body(IoUtils.bytes(new ClassPathResource(path).getInputStream())); + bytes = IoUtils.bytes(new ClassPathResource(path).getInputStream()); } File file = ResourceUtils.getFile(configuration.getEditorConfig()); - return responseBuilder.body(Files.readAllBytes(Paths.get(file.toURI()))); + bytes = Files.readAllBytes(Paths.get(file.toURI())); } catch (IOException e) { logger.warn("读取编辑器配置文件{}失败", configuration.getEditorConfig()); } } - return responseBuilder.body("var MAGIC_EDITOR_CONFIG = {}".getBytes()); + try (OutputStream stream = response.getOutputStream()) { + stream.write(bytes); + stream.flush(); + } } @RequestMapping("/download") @Valid(authorization = Authorization.DOWNLOAD) - @ResponseBody - public ResponseEntity download(String groupId, @RequestBody(required = false) List resources, MagicHttpServletRequest request) throws IOException { + public void download(String groupId, @RequestBody(required = false) List resources, MagicHttpServletRequest request, MagicHttpServletResponse response) throws IOException { isTrue(allowVisit(request, Authorization.DOWNLOAD), PERMISSION_INVALID); + response.setContentType("application/octet-stream"); ByteArrayOutputStream os = new ByteArrayOutputStream(); magicAPIService.download(groupId, resources, os); + String filename = "magic-api-all.zip"; if (StringUtils.isBlank(groupId)) { - return ResponseModule.download(os.toByteArray(), "magic-api-group.zip"); - } else { - return ResponseModule.download(os.toByteArray(), "magic-api-all.zip"); + filename = "magic-api-group.zip"; + } + response.setHeader("Content-Disposition", "attachment; filename=" + URLEncoder.encode(filename, "UTF-8")); + try (OutputStream stream = response.getOutputStream()) { + stream.write(os.toByteArray()); + stream.flush(); } } From 110f8b8852d5daa0f21c12cf7c98406226145115 Mon Sep 17 00:00:00 2001 From: jmxd <838425805@qq.com> Date: Sun, 30 Apr 2023 10:20:04 +0800 Subject: [PATCH 5/8] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ssssssss/magicapi/core/web/MagicWorkbenchController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/magic-api/src/main/java/org/ssssssss/magicapi/core/web/MagicWorkbenchController.java b/magic-api/src/main/java/org/ssssssss/magicapi/core/web/MagicWorkbenchController.java index 03001b4e..705bae42 100644 --- a/magic-api/src/main/java/org/ssssssss/magicapi/core/web/MagicWorkbenchController.java +++ b/magic-api/src/main/java/org/ssssssss/magicapi/core/web/MagicWorkbenchController.java @@ -5,6 +5,7 @@ import org.slf4j.LoggerFactory; import org.springframework.core.io.ClassPathResource; import org.springframework.http.HttpHeaders; +import org.springframework.http.MediaType; import org.springframework.util.ResourceUtils; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -279,14 +280,14 @@ public void configJs(MagicHttpServletResponse response) throws IOException { @Valid(authorization = Authorization.DOWNLOAD) public void download(String groupId, @RequestBody(required = false) List resources, MagicHttpServletRequest request, MagicHttpServletResponse response) throws IOException { isTrue(allowVisit(request, Authorization.DOWNLOAD), PERMISSION_INVALID); - response.setContentType("application/octet-stream"); + response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE); ByteArrayOutputStream os = new ByteArrayOutputStream(); magicAPIService.download(groupId, resources, os); String filename = "magic-api-all.zip"; if (StringUtils.isBlank(groupId)) { filename = "magic-api-group.zip"; } - response.setHeader("Content-Disposition", "attachment; filename=" + URLEncoder.encode(filename, "UTF-8")); + response.setHeader(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=" + URLEncoder.encode(filename, "UTF-8")); try (OutputStream stream = response.getOutputStream()) { stream.write(os.toByteArray()); stream.flush(); From dc72e770b434f894aa06b780dddb37c3d4f4f62a Mon Sep 17 00:00:00 2001 From: jmxd <838425805@qq.com> Date: Wed, 10 May 2023 14:34:59 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- magic-api-plugins/magic-api-plugin-cluster/pom.xml | 2 +- magic-api-plugins/magic-api-plugin-component/pom.xml | 2 +- magic-api-plugins/magic-api-plugin-elasticsearch/pom.xml | 2 +- magic-api-plugins/magic-api-plugin-git/pom.xml | 2 +- magic-api-plugins/magic-api-plugin-mongo/pom.xml | 2 +- magic-api-plugins/magic-api-plugin-redis/pom.xml | 2 +- magic-api-plugins/magic-api-plugin-springdoc/pom.xml | 2 +- magic-api-plugins/magic-api-plugin-swagger/pom.xml | 2 +- magic-api-plugins/magic-api-plugin-task/pom.xml | 2 +- .../magic-api-plugin-task/src/console/package.json | 2 +- magic-api-plugins/pom.xml | 4 ++-- magic-api-servlet/magic-api-servlet-jakarta/pom.xml | 2 +- magic-api-servlet/magic-api-servlet-javaee/pom.xml | 2 +- magic-api-servlet/pom.xml | 2 +- magic-api-spring-boot-starter/pom.xml | 2 +- magic-api/pom.xml | 2 +- magic-editor/pom.xml | 2 +- pom.xml | 4 ++-- 19 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 5896746e..18327469 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ magic-api 是一个基于Java的接口快速开发框架,编写接口将通过 org.ssssssss magic-api-spring-boot-starter - 2.1.0 + 2.1.1 ``` ## 修改application.properties diff --git a/magic-api-plugins/magic-api-plugin-cluster/pom.xml b/magic-api-plugins/magic-api-plugin-cluster/pom.xml index 33fe48b7..021daaef 100644 --- a/magic-api-plugins/magic-api-plugin-cluster/pom.xml +++ b/magic-api-plugins/magic-api-plugin-cluster/pom.xml @@ -6,7 +6,7 @@ org.ssssssss magic-api-plugins - 2.1.0 + 2.1.1 magic-api-plugin-cluster jar diff --git a/magic-api-plugins/magic-api-plugin-component/pom.xml b/magic-api-plugins/magic-api-plugin-component/pom.xml index dce01a61..4d096518 100644 --- a/magic-api-plugins/magic-api-plugin-component/pom.xml +++ b/magic-api-plugins/magic-api-plugin-component/pom.xml @@ -6,7 +6,7 @@ org.ssssssss magic-api-plugins - 2.1.0 + 2.1.1 magic-api-plugin-component jar diff --git a/magic-api-plugins/magic-api-plugin-elasticsearch/pom.xml b/magic-api-plugins/magic-api-plugin-elasticsearch/pom.xml index 7593b7ff..a28052cf 100644 --- a/magic-api-plugins/magic-api-plugin-elasticsearch/pom.xml +++ b/magic-api-plugins/magic-api-plugin-elasticsearch/pom.xml @@ -6,7 +6,7 @@ org.ssssssss magic-api-plugins - 2.1.0 + 2.1.1 magic-api-plugin-elasticsearch jar diff --git a/magic-api-plugins/magic-api-plugin-git/pom.xml b/magic-api-plugins/magic-api-plugin-git/pom.xml index 90e67d12..57d26ea2 100644 --- a/magic-api-plugins/magic-api-plugin-git/pom.xml +++ b/magic-api-plugins/magic-api-plugin-git/pom.xml @@ -6,7 +6,7 @@ org.ssssssss magic-api-plugins - 2.1.0 + 2.1.1 magic-api-plugin-git jar diff --git a/magic-api-plugins/magic-api-plugin-mongo/pom.xml b/magic-api-plugins/magic-api-plugin-mongo/pom.xml index d035a6b7..797656a9 100644 --- a/magic-api-plugins/magic-api-plugin-mongo/pom.xml +++ b/magic-api-plugins/magic-api-plugin-mongo/pom.xml @@ -6,7 +6,7 @@ org.ssssssss magic-api-plugins - 2.1.0 + 2.1.1 magic-api-plugin-mongo jar diff --git a/magic-api-plugins/magic-api-plugin-redis/pom.xml b/magic-api-plugins/magic-api-plugin-redis/pom.xml index 5796c56f..c9e8b060 100644 --- a/magic-api-plugins/magic-api-plugin-redis/pom.xml +++ b/magic-api-plugins/magic-api-plugin-redis/pom.xml @@ -6,7 +6,7 @@ org.ssssssss magic-api-plugins - 2.1.0 + 2.1.1 magic-api-plugin-redis jar diff --git a/magic-api-plugins/magic-api-plugin-springdoc/pom.xml b/magic-api-plugins/magic-api-plugin-springdoc/pom.xml index 006b52b3..fafb6d3d 100644 --- a/magic-api-plugins/magic-api-plugin-springdoc/pom.xml +++ b/magic-api-plugins/magic-api-plugin-springdoc/pom.xml @@ -6,7 +6,7 @@ org.ssssssss magic-api-plugins - 2.1.0 + 2.1.1 magic-api-plugin-springdoc jar diff --git a/magic-api-plugins/magic-api-plugin-swagger/pom.xml b/magic-api-plugins/magic-api-plugin-swagger/pom.xml index ebb41bb7..2b880399 100644 --- a/magic-api-plugins/magic-api-plugin-swagger/pom.xml +++ b/magic-api-plugins/magic-api-plugin-swagger/pom.xml @@ -6,7 +6,7 @@ org.ssssssss magic-api-plugins - 2.1.0 + 2.1.1 magic-api-plugin-swagger jar diff --git a/magic-api-plugins/magic-api-plugin-task/pom.xml b/magic-api-plugins/magic-api-plugin-task/pom.xml index 40208aa0..315abfc3 100644 --- a/magic-api-plugins/magic-api-plugin-task/pom.xml +++ b/magic-api-plugins/magic-api-plugin-task/pom.xml @@ -6,7 +6,7 @@ org.ssssssss magic-api-plugins - 2.1.0 + 2.1.1 magic-api-plugin-task jar diff --git a/magic-api-plugins/magic-api-plugin-task/src/console/package.json b/magic-api-plugins/magic-api-plugin-task/src/console/package.json index c941fe45..d0503055 100644 --- a/magic-api-plugins/magic-api-plugin-task/src/console/package.json +++ b/magic-api-plugins/magic-api-plugin-task/src/console/package.json @@ -1,5 +1,5 @@ { - "name": "magic-test", + "name": "magic-task", "version": "1.0.0", "description": "", "main": "index.js", diff --git a/magic-api-plugins/pom.xml b/magic-api-plugins/pom.xml index 721063ae..f63a46e2 100644 --- a/magic-api-plugins/pom.xml +++ b/magic-api-plugins/pom.xml @@ -6,10 +6,10 @@ org.ssssssss magic-api-parent - 2.1.0 + 2.1.1 magic-api-plugins - 2.1.0 + 2.1.1 pom magic-api-plugins auto generate http api diff --git a/magic-api-servlet/magic-api-servlet-jakarta/pom.xml b/magic-api-servlet/magic-api-servlet-jakarta/pom.xml index 3e6203fb..a853f5a2 100644 --- a/magic-api-servlet/magic-api-servlet-jakarta/pom.xml +++ b/magic-api-servlet/magic-api-servlet-jakarta/pom.xml @@ -6,7 +6,7 @@ org.ssssssss magic-api-servlet - 2.1.0 + 2.1.1 magic-api-servlet-jakarta jar diff --git a/magic-api-servlet/magic-api-servlet-javaee/pom.xml b/magic-api-servlet/magic-api-servlet-javaee/pom.xml index 323604ef..852103d3 100644 --- a/magic-api-servlet/magic-api-servlet-javaee/pom.xml +++ b/magic-api-servlet/magic-api-servlet-javaee/pom.xml @@ -6,7 +6,7 @@ org.ssssssss magic-api-servlet - 2.1.0 + 2.1.1 magic-api-servlet-javaee jar diff --git a/magic-api-servlet/pom.xml b/magic-api-servlet/pom.xml index 635504d6..5b72d89a 100644 --- a/magic-api-servlet/pom.xml +++ b/magic-api-servlet/pom.xml @@ -6,7 +6,7 @@ org.ssssssss magic-api-parent - 2.1.0 + 2.1.1 magic-api-servlet pom diff --git a/magic-api-spring-boot-starter/pom.xml b/magic-api-spring-boot-starter/pom.xml index 0f7c9f89..2b4ee147 100644 --- a/magic-api-spring-boot-starter/pom.xml +++ b/magic-api-spring-boot-starter/pom.xml @@ -6,7 +6,7 @@ org.ssssssss magic-api-parent - 2.1.0 + 2.1.1 magic-api-spring-boot-starter jar diff --git a/magic-api/pom.xml b/magic-api/pom.xml index 05c18b20..4528638f 100644 --- a/magic-api/pom.xml +++ b/magic-api/pom.xml @@ -6,7 +6,7 @@ org.ssssssss magic-api-parent - 2.1.0 + 2.1.1 magic-api jar diff --git a/magic-editor/pom.xml b/magic-editor/pom.xml index 26a88e9f..15a7f018 100644 --- a/magic-editor/pom.xml +++ b/magic-editor/pom.xml @@ -6,7 +6,7 @@ org.ssssssss magic-api-parent - 2.1.0 + 2.1.1 magic-editor jar diff --git a/pom.xml b/pom.xml index 8ba3c7cd..f8f65fc2 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.ssssssss magic-api-parent - 2.1.0 + 2.1.1 pom magic-api-parent auto generate http api @@ -30,7 +30,7 @@ 2.4.5 - 1.8.7 + 1.8.8 1.21 2.7 1.6 From 6ccdf4eb5386d3bb29ca4298d24c908ab0e5461a Mon Sep 17 00:00:00 2001 From: jmxd <838425805@qq.com> Date: Wed, 10 May 2023 21:46:05 +0800 Subject: [PATCH 7/8] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{app.b15d6e90.js => app.a9d6cb03.js} | 64 +++++++++---------- .../{index.0cc26bfc.js => index.ac5bc35e.js} | 2 +- .../magic-editor/assets/style.07c46cc4.css | 1 + .../magic-editor/assets/style.63f02940.css | 1 - ...{vendor.cc41f120.js => vendor.3be44c84.js} | 2 +- .../main/resources/magic-editor/index.html | 10 +-- 6 files changed, 40 insertions(+), 40 deletions(-) rename magic-editor/src/main/resources/magic-editor/assets/{app.b15d6e90.js => app.a9d6cb03.js} (53%) rename magic-editor/src/main/resources/magic-editor/assets/{index.0cc26bfc.js => index.ac5bc35e.js} (84%) create mode 100644 magic-editor/src/main/resources/magic-editor/assets/style.07c46cc4.css delete mode 100644 magic-editor/src/main/resources/magic-editor/assets/style.63f02940.css rename magic-editor/src/main/resources/magic-editor/assets/{vendor.cc41f120.js => vendor.3be44c84.js} (99%) diff --git a/magic-editor/src/main/resources/magic-editor/assets/app.b15d6e90.js b/magic-editor/src/main/resources/magic-editor/assets/app.a9d6cb03.js similarity index 53% rename from magic-editor/src/main/resources/magic-editor/assets/app.b15d6e90.js rename to magic-editor/src/main/resources/magic-editor/assets/app.a9d6cb03.js index 48c06002..a356312b 100644 --- a/magic-editor/src/main/resources/magic-editor/assets/app.b15d6e90.js +++ b/magic-editor/src/main/resources/magic-editor/assets/app.a9d6cb03.js @@ -1,43 +1,43 @@ -var Vn=Object.defineProperty;var jn=(e,t,a)=>t in e?Vn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var ht=(e,t,a)=>(jn(e,typeof t!="symbol"?t+"":t,a),a);import{r as y,o as v,c as j,u as h,a as U,w,b as R,t as F,d as _,e as Ia,p as Ye,g as Tt,f as pt,h as Gn,i as We,n as be,j as k,k as bt,v as Ut,l as X,m as je,q as ye,F as te,s as fe,x as ve,y as pe,z as St,A as et,B as _e,C as le,T as dn,D as Be,E as zn,G as Yn,H as qn,I as oe,J as Kn,K as pn,L as ee,M as Et,N as Wn,O as Ue,P as ka,Q as La,R as Xn,S as Jn,V as Qn}from"./vue.6f28a6f0.js";import{a as Zn}from"./axios.23e7b955.js";import{l as za,e as $e,a as W,R as st,W as ei,b as ti,c as ai,m as ni,C as Ya,K as ct,d as ft,M as ii,f as si,g as sa,T as oi,t as ri}from"./vendor.cc41f120.js";const li={__name:"App",setup(e){let t={};try{parent&&parent.MAGIC_EDITOR_CONFIG&&(t={...parent.MAGIC_EDITOR_CONFIG})}catch{}window.MAGIC_EDITOR_CONFIG&&(t={...t,...window.MAGIC_EDITOR_CONFIG}),t.baseURL="./",t.serverURL="./",t.inJar=!0;const a=s=>{var o=window.location.search.substr(1).match(new RegExp("(^|&)"+s+"=([^&]*)(&|$)","i"));return o&&unescape(o[2])},n=a("headerName"),i=a("headerValue");return n&&i&&(t.request=t.request||{},t.request.beforeSend=s=>(s.headers[n]=i,s)),(s,o)=>{const r=y("magic-editor");return v(),j(r,{config:h(t)},null,8,["config"])}}};const ci="magic-editor",ui="2.1.0",di={dev:"vite",build:"vite build"},pi={axios:"^0.24.0","monaco-editor":"0.29.1",qs:"^6.10.1",vue:"^3.2.31"},_i={"@vitejs/plugin-vue":"^2.2.4",vite:"^2.8.6","vite-plugin-svg-icons":"^1.1.0"};var hi={name:ci,version:ui,scripts:di,dependencies:pi,devDependencies:_i};const oa="magic-";class fi{constructor(){}set(t,a){(Array.isArray(a)||typeof a=="object")&&(a=JSON.stringify(a)),localStorage.setItem(`${oa}${t}`,a)}remove(t){localStorage.removeItem(`${oa}${t}`)}get(t){return localStorage.getItem(`${oa}${t}`)}}var De=new fi,Na={name:"English",message:{run:"Run",save:"Save",search:"Search",upload:"Upload",export:"Export",push:"Push",skin:"Skin",reload:"reload all resources",copy:"Copy",searchText:"Enter keywords to search",required:"Required",defaultValue:"Default Value",description:"Description",parameterType:"Parameter Type",view:"View",addRow:"Add Row",removeRow:"Remove Row",all:"All",clear:"Clear",empty:"{0} is empty.",type:"Type",date:"Date",name:"Name",group:"{0} Group",i18n:"Language",tips:"Tips",ok:"OK",refresh:"Refresh",loading:"Loading...",nodata:"no data.",cancel:"Cancel",update:"Update",create:"Create",username:"Username",password:"Password",createDataSource:"Create {0}",chooseFile:"Please Choose File",expand:"Expand",collapse:"Collapse",selectAll:"Select All",deselectAll:"Deselect All",hide:"Hide",login:"Login",ignore:"Ignore",document:"Document",joinGroup:"Join QQ Group",untitled:"Untitled",log:"Log",enable:"Enable",variable:"Variable Info",switchLocale:"Switch Language To {0}, It work at after refreshing the page, Do you want to Refresh the page ?",loadClass:"Load Classes...",loadClassError:"Failed Load Classes",switchSkin:"Switch Skin To\u300C{0}\u300D",loadClassFinish:"Class Loaded",tryAutoLogin:"Try Auto Login",autoLoginSuccess:"Auto Login Success",getCurrentLoginUser:"Load Current Logined User",getResource:"Load {0} Resources",getResourceFinish:"{0} Resources Loaded",connectDebugServer:"Debug Server Connecting...",debugServerClose:"Debug Server Disconnected",connectDebugServerSuccess:"Connect Debug Server Success",reloadResourceSuccess:"Resource Reload Success",getDetail:"Load {0} Detail",getDetailSuccess:"Load {0} Detail Success",lockSuccess:"Lock {0} Success",lockFailed:"Failed to Lock {0}",unlockSuccess:"UnLock {0} Success",unlockFailed:"Failed to UnLock {0}",updateTips:"Update {0}",saveSuccess:"Save {0} Success",saveFailed:"Failed to Save {0}",newVersionRelease:"New Version {0} available",versionLastest:"Current Version is Lastese",versionUpdate:"New Version {0} available
Do you want Upgrade?",changelog:"CHANGELOG",versionConflict:"Version does not matched frontend: {0}, backend: {1}, Please Check!",versionCheck:"Version Check",loadConfigError:"Failed to load configuration",logout:"Logout",logoutSuccess:"Logout Success",logoutConfirm:"Are you sure Logout {0} ?",deleteConfirm:"Do you want Delete {0}",deleteSuccess:"Delete {0} Success",deleteFailed:"Failed to Delete {0}",deleteTips:"Delete {0}",remote:"Remote",secret:"Secret",exported:"The selected resource has been exported",exportNoneSelect:"Please select and then export",pushNoneSelect:"Please select and then push",responseBody:"Body",responseHeader:"Header",responseStructure:"Structure",root:"Root",pushWarning:"When the full mode is pushed, the local data shall prevail and the full coverage update will be carried out. Do you want to continue?",uploadWarning:"When uploading in full mode, the overwrite update operation is performed based on the uploaded data, and other interfaces may be deleted.
In the case of partial export, it is recommended to use incremental update. Do you want to continue?",noValidate:"No Validate",validatePattern:"Regex attern",validateExpression:"Expression"},plugin:{loading:"Load plugin \u300C{0}\u300D",loaded:"Plugin\u300C{0}\u300D Loaded",loadFailed:"Failed to load plugin\u300C{0}\u300D"},resource:{createGroup:"Create Group",updateGroup:"Update Group",copyGroup:"Copy Group",deleteGroupConfirm:"Do you want Delete {0} Group\u300C{1}\u300D?",deleteGroupSuccess:"Delete {0} Group\u300C{1}\u300DSuccess",deleteGroupFailed:"Failed to Delete {0} Group \u300C{1}\u300D",groupExport:"Group\u300C{0}\u300D's {1} Exported",moveGroup:"Move Group",moveRootGroupConfirm:"Do you want move Group \u300C{0}\u300Dinto root?",moveRootSuccess:"Move {0} Group \u300C{1}\u300Dinto root Success",moveRootFailed:"Failed to Move {0} Group\u300C{1}\u300D into root",moveGroupSuccess:"Move {0} Group \u300C{1}\u300D Success",moveGroupFailed:"Failed to Move {0} Group \u300C{1}\u300D",moveFileSuccess:"Move {0} Success",moveResourceFailed:"Failed to Move {0}",saveGroupSuccess:"Save {0} Group {1}\u300D Success",saveGroupFailed:"Failed to Save {0} Group \u300C{1}\u300D",copyPathSuccess:"Copy {0} Path {1}\u300D Success",copyPathFailed:"Failed to Copy {0} Path \u300C{1}\u300D",copyRelativePathSuccess:"Copy {0} Relative Path \u300C{1}\u300D Success",copyRelativePathFailed:"Failed to Copy {0} Relative Path \u300C{1}\u300D",contextmenu:{copy:"Copy {0}",copyWithPath:"Copy Absolute Path",copyRelativePath:"Copy Relative Path",lock:"Lock",unlock:"UnLock",delete:"Delete",newFile:"New {0}",deleteGroup:"Delete Group",exportGroup:"Export Group",moveToRoot:"Move To Root"},header:{expand:"Expand All",collapse:"Collapse All",asc:"Ascending",desc:"Descending",position:"Select Opened File"},form:{groupName:"Group Name",groupPath:"Group Path",placeholder:{name:"Please Enter {0} Group Name",path:"Please Enter {0} Group Path"}}},editor:{tab:{close:"Close",closeOther:"Close Other Tabs",closeLeft:"Close Tabs to the Left",closeRight:"Close Tabs to the Right",closeAll:"Close All Tabs"},tooltip:{complection:"Trigger Suggest",resume:"Resume Breakpoint",stepInto:"Step Into",format:"Reformat Code",recent:"Recent Opened Files"},triggerSuggest:"Trigger Suggest"},api:{title:"Api Info",name:"Api",form:{method:"Method",name:"Name",path:"Path",placeholder:{name:"Please Enter Api Name",path:"Please Enter Api Path"}},navbars:{parameter:"Parameters",header:"Headers",path:"PathVariables",body:"Body",option:"Options",description:"Descriptions",groupOption:"Group Options"},validateType:"Validate Type",expression:"Expression or Regex Pattern",validate:"Validate Description",field:"Field",test:{requestBodyError:"RequestBody Has Error, please check!",missPath:"Please enter PathVariable",requestError:"Failed to send Request\u300C{0}\u300D",success:"\u300C{0}\u300DRequest finish, Status:{1} Size:{2} Time\uFF1A{3} ms",begin:"Start Request For\u300C{0}\u300D"},structure:{content:"{0} Structure has changed, Do you wang to change\uFF1F",ok:"Change"}},datasource:{title:"DataSource",name:"DataSource",copySuccess:"Copy {0} Success",copyFailed:"Failed to Copy {0}",test:"Test",connected:"Connected",connectFailed:`Failed to Connect, Reason:\r -{0}`,primary:"Primary",form:{placeholder:{name:"DataSource Name, Only Display Use",key:"DataSource Key, Required",url:"Please Enter jdbcURL\uFF0Ceg: jdbc:mysql://localhost/dbname",username:"Please Enter Database username, Optional",password:"Please Enter Database password, Optional",driver:"DriverClass, Optional",type:"Pool Type, Optional",maxRows:"Max Return Rows"},driver:"Driver",type:"Type",other:"Others"}},fn:{title:"Function Info",name:"Function",number:"Nunmber",string:"String",collection:"Collection",returnValue:"Return Types",parameter:"Function Parameters",description:"Function Description",form:{name:"Name",path:"Path",placeholder:{name:"Please Enter Function Name",path:"Please Enter Function Path"}}},toolbars:{debug:"Debug",log:"Run Log",history:"History",event:"Event",global:"Global Parameters",response:"Response",viewHistory:"History:{0}"},event:{message:"Message"},history:{name:"History",operator:"Operators"},upload:{full:"Full Upload",increment:"Increment Upload",success:"{0} Success",failed:"Failed to {0}"},push:{full:"Full Push",increment:"Increment Push",success:"{0} Success",failed:"Failed to {0}"},backup:{full:"Full Backup",backupSuccess:"Full Backup Success",rollback:"Rollback",current:"Current",difference:"Difference",rollbackSuccess:"Rollback {0} Success",rollbackFailed:"Failed to Rollback {0}",rollbackConfirm:"this operation will overview current resources, Do you want to continue?"},online:{login:"User Login",loginTips:"User {0} Login, IP: {1}",logout:"User Logout",logoutTips:"User {0} Logout, IP: {1}",onlines:"Online: {0}"},log:{hide:"Click to hide multiline log",show:"{0} lines of log are hidden, Click to show",scrollEnd:"Scroll to End"},code:{error:"Error({0})",invalid:"Error,HttpStatus({0})",httpError:"Error","-2":"Current is Readonly, Cannot be Operated","-10":"Unauthorized Operation",1001:"Group Not Found",1002:"Not Support the Group Type",1003:"Remote Cannot be empty",1004:"secretKey Cannot be empty",1005:"The name will repeat after moving. Please modify the name and try again.",1006:"Source object and grouping cannot be consistent",1007:"Resoirce Not Found",1008:"The current resource has been locked. Please operate after unlocking",1009:"This path has been used. Please try another path",1010:"There are conflicts in resource [{0}], please check",1011:"The path will conflict after moving. Please try another path",1012:"Request Method Cannot be empty",1013:"Reqeust Path Cannot be empty",1014:"Function Path Cannot be empty",1015:"The configured file path does not exist, please check",1016:"The Api [{0} ({1})] conflicts with the application and cannot be registered",1017:"Script Cannot be empty",1018:"Name Cannot be empty",1019:"Path Cannot be empty",1020:"jdbcURL Cannot be empty",1021:"key Cannot be empty",1022:"The data source key has been used. Please replace it and try again",1023:"Please Choose Group",1024:"Cron Expression Cannot be empty",1025:"The name cannot contain special characters. Only Chinese, numbers, letters and +-.() and . cannot be start",1026:"The data source key cannot contain special characters, only Chinese, numbers, letters, _",1027:"Failed to save. The group name under the same group cannot be duplicate and cannot contain special characters.",1028:"Parameter validation failed",1029:"Header validation failed",1030:"PathVariable validation failed",1031:"RequestBody validation failed",1032:"Please Upload File",1033:"Failed to validate Signature. Please check whether the secret key is correct",1034:"Backup is not enabled and cannot be operated",1035:"Api Not Found"}},gi=Object.freeze(Object.defineProperty({__proto__:null,default:Na},Symbol.toStringTag,{value:"Module"})),$t={name:"\u7B80\u4F53\u4E2D\u6587",message:{run:"\u8FD0\u884C",save:"\u4FDD\u5B58",search:"\u641C\u7D22",upload:"\u4E0A\u4F20",export:"\u5BFC\u51FA",push:"\u63A8\u9001",skin:"\u76AE\u80A4",reload:"\u91CD\u65B0\u52A0\u8F7D\u6240\u6709\u6570\u636E",copy:"\u590D\u5236",searchText:"\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22",required:"\u5FC5\u586B",defaultValue:"\u9ED8\u8BA4\u503C",description:"\u63CF\u8FF0",parameterType:"\u53C2\u6570\u7C7B\u578B",view:"\u89C6\u56FE",addRow:"\u589E\u52A0\u4E00\u884C",removeRow:"\u5220\u9664\u4E00\u884C",all:"\u5168\u90E8",clear:"\u6E05\u7A7A",empty:"\u6682\u65E0{0}",type:"\u7C7B\u578B",date:"\u65F6\u95F4",name:"\u540D\u79F0",group:"{0}\u5206\u7EC4",i18n:"\u8BED\u8A00",tips:"\u63D0\u793A",ok:"\u786E\u5B9A",refresh:"\u5237\u65B0",loading:"\u52A0\u8F7D\u4E2D",nodata:"\u65E0\u6570\u636E",cancel:"\u53D6\u6D88",update:"\u4FEE\u6539",create:"\u521B\u5EFA",username:"\u7528\u6237\u540D",password:"\u5BC6\u7801",createDataSource:"\u521B\u5EFA{0}",chooseFile:"\u8BF7\u9009\u62E9\u6587\u4EF6",expand:"\u5C55\u5F00",collapse:"\u6536\u7F29",selectAll:"\u5168\u9009",deselectAll:"\u53D6\u6D88\u5168\u9009",hide:"\u9690\u85CF",login:"\u767B\u5F55",ignore:"\u4E0D\u518D\u63D0\u9192",document:"\u5E2E\u52A9\u6587\u6863",joinGroup:"\u52A0\u5165QQ\u7FA4",untitled:"\u672A\u5B9A\u4E49\u540D\u79F0",log:"\u65E5\u5FD7",enable:"\u542F\u7528",variable:"\u53D8\u91CF\u4FE1\u606F",switchLocale:"\u5DF2\u5207\u6362\u81F3{0}\uFF0C\u5237\u65B0\u9875\u9762\u540E\u751F\u6548\uFF0C\u662F\u5426\u5237\u65B0\uFF1F",loadClass:"\u52A0\u8F7Dclasses\u4FE1\u606F...",loadClassError:"\u52A0\u8F7Dclasses\u4FE1\u606F\u5931\u8D25",switchSkin:"\u5207\u6362\u76AE\u80A4\u81F3\u300C{0}\u300D",loadClassFinish:"classes\u4FE1\u606F\u52A0\u8F7D\u5B8C\u6BD5",tryAutoLogin:"\u5C1D\u8BD5\u81EA\u52A8\u767B\u5F55",autoLoginSuccess:"\u81EA\u52A8\u767B\u5F55\u6210\u529F",getCurrentLoginUser:"\u83B7\u53D6\u5F53\u524D\u767B\u5F55\u7528\u6237\u4FE1\u606F",getResource:"\u83B7\u53D6{0}\u8D44\u6E90",getResourceFinish:"\u83B7\u53D6{0}\u8D44\u6E90\u5B8C\u6BD5",connectDebugServer:"\u8FDE\u63A5\u8C03\u8BD5\u670D\u52A1\u5668...",debugServerClose:"\u8C03\u8BD5\u670D\u52A1\u5668\u5DF2\u65AD\u5F00",connectDebugServerSuccess:"\u8FDE\u63A5\u8C03\u8BD5\u670D\u52A1\u5668\u6210\u529F",reloadResourceSuccess:"\u91CD\u65B0\u52A0\u8F7D\u8D44\u6E90\u6210\u529F",getDetail:"\u83B7\u53D6{0}",getDetailSuccess:"\u83B7\u53D6{0}\u8BE6\u60C5\u6210\u529F",lockSuccess:"\u6210\u529F\u9501\u5B9A{0}",lockFailed:"\u9501\u5B9A{0}\u5931\u8D25",unlockSuccess:"\u6210\u529F\u89E3\u9501{0}",unlockFailed:"\u89E3\u9501{0}\u5931\u8D25",updateTips:"\u4FEE\u6539{0}",saveSuccess:"\u4FDD\u5B58{0}\u6210\u529F",saveFailed:"\u4FDD\u5B58{0}\u5931\u8D25",newVersionRelease:"\u7248\u672C\u68C0\u6D4B\u5B8C\u6BD5\uFF0C\u6700\u65B0\u7248\u672C\u4E3A\uFF1A{0},\u5EFA\u8BAE\u66F4\u65B0\uFF01\uFF01",versionLastest:"\u7248\u672C\u68C0\u6D4B\u5B8C\u6BD5\uFF0C\u5F53\u524D\u5DF2\u662F\u6700\u65B0\u7248",versionUpdate:"\u68C0\u6D4B\u5230\u5DF2\u6709\u65B0\u7248\u672C{0}\uFF0C\u662F\u5426\u66F4\u65B0\uFF1F",changelog:"\u66F4\u65B0\u65E5\u5FD7",versionConflict:"\u68C0\u6D4B\u5230\u524D\u540E\u7AEF\u7248\u672C\u4E0D\u4E00\u81F4\uFF08\u524D\u7AEF\uFF1A{0} \u540E\u7AEF\uFF1A{1}\uFF09\uFF0C\u8BF7\u68C0\u67E5",versionCheck:"\u7248\u672C\u68C0\u6D4B",loadConfigError:"\u52A0\u8F7D\u914D\u7F6E\u5931\u8D25",logout:"\u6CE8\u9500\u767B\u5F55",logoutSuccess:"\u6CE8\u9500\u767B\u5F55\u6210\u529F",logoutConfirm:"\u662F\u5426\u8981\u6CE8\u9500\u767B\u5F55\u300C{0}\u300D",deleteConfirm:"\u662F\u5426\u8981\u5220\u9664{0}",deleteSuccess:"\u5220\u9664{0}\u6210\u529F",deleteFailed:"\u5220\u9664{0}\u5931\u8D25",deleteTips:"\u5220\u9664{0}",remote:"\u8FDC\u7A0B\u5730\u5740",secret:"\u79D8\u94A5",exported:"\u6570\u636E\u5DF2\u5BFC\u51FA\u5B8C\u6BD5",exportNoneSelect:"\u8BF7\u9009\u62E9\u4E4B\u518D\u5728\u8FDB\u884C\u5BFC\u51FA\uFF01",pushNoneSelect:"\u8BF7\u9009\u62E9\u4E4B\u540E\u518D\u8FDB\u884C\u63A8\u9001\uFF01",responseBody:"Body",responseHeader:"\u54CD\u5E94Header",responseStructure:"\u54CD\u5E94\u7ED3\u6784",root:"\u6839\u8282\u70B9",pushWarning:"\u5168\u91CF\u6A21\u5F0F\u63A8\u9001\u65F6\uFF0C\u4EE5\u672C\u5730\u6570\u636E\u4E3A\u51C6\u5168\u91CF\u8986\u76D6\u66F4\u65B0\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",uploadWarning:"\u5168\u91CF\u6A21\u5F0F\u4E0A\u4F20\u65F6\uFF0C\u4EE5\u4E0A\u4F20\u7684\u6570\u636E\u4E3A\u51C6\u8FDB\u884C\u8986\u76D6\u66F4\u65B0\u64CD\u4F5C\uFF0C\u53EF\u80FD\u4F1A\u5220\u9664\u5176\u4ED6\u63A5\u53E3
\u5728\u975E\u5168\u91CF\u5BFC\u51FA\u65F6\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u589E\u91CF\u66F4\u65B0\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",noValidate:"\u4E0D\u9A8C\u8BC1",validatePattern:"\u6B63\u5219\u9A8C\u8BC1",validateExpression:"\u8868\u8FBE\u5F0F\u9A8C\u8BC1"},plugin:{loading:"\u52A0\u8F7D\u63D2\u4EF6\u300C{0}\u300D",loaded:"\u5DF2\u52A0\u8F7D\u63D2\u4EF6\u300C{0}\u300D",loadFailed:"\u52A0\u8F7D\u63D2\u4EF6\u300C{0}\u300D\u5931\u8D25"},resource:{createGroup:"\u521B\u5EFA\u5206\u7EC4",updateGroup:"\u4FEE\u6539\u5206\u7EC4",copyGroup:"\u590D\u5236\u5206\u7EC4",deleteGroupConfirm:"\u662F\u5426\u8981\u5220\u9664{0}\u5206\u7EC4\u300C{1}\u300D\uFF1F",deleteGroupSuccess:"\u5220\u9664{0}\u5206\u7EC4\u300C{1}\u300D\u6210\u529F",deleteGroupFailed:"\u5220\u9664{0}\u5206\u7EC4\u300C{1}\u300D\u5931\u8D25",groupExport:"\u5206\u7EC4\u300C{0}\u300D\u76F8\u5173{1}\u5DF2\u5BFC\u51FA",moveGroup:"\u79FB\u52A8\u5206\u7EC4",moveRootGroupConfirm:"\u662F\u5426\u8981\u5C06\u5206\u7EC4\u300C{0}\u300D\u79FB\u52A8\u81F3\u6839\u8282\u70B9",moveRootSuccess:"\u79FB\u52A8{0}\u5206\u7EC4\u300C{1}\u300D\u81F3\u6839\u8282\u70B9\u6210\u529F",moveRootFailed:"\u79FB\u52A8{0}\u5206\u7EC4\u300C{1}\u300D\u81F3\u6839\u8282\u70B9\u5931\u8D25",moveGroupSuccess:"\u79FB\u52A8{0}\u5206\u7EC4\u300C{1}\u300D\u6210\u529F",moveGroupFailed:"\u79FB\u52A8{0}\u5206\u7EC4\u300C{1}\u300D\u5931\u8D25",moveFileSuccess:"\u79FB\u52A8\u8D44\u6E90\u300C{0}\u300D\u6210\u529F",moveResourceFailed:"\u79FB\u52A8\u8D44\u6E90\u300C{0}\u300D\u5931\u8D25",saveGroupSuccess:"\u4FDD\u5B58{0}\u5206\u7EC4\u300C{1}\u300D\u6210\u529F",saveGroupFailed:"\u4FDD\u5B58{0}\u5206\u7EC4\u300C{1}\u300D\u5931\u8D25",copyPathSuccess:"{0}\u8DEF\u5F84\u300C{1}\u300D\u590D\u5236\u6210\u529F",copyPathFailed:"{0}\u8DEF\u5F84\u300C{1}\u300D\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u590D\u5236",copyRelativePathSuccess:"{0}\u76F8\u5BF9\u8DEF\u5F84\u300C{1}\u300D\u590D\u5236\u6210\u529F",copyRelativePathFailed:"{0}\u76F8\u5BF9\u8DEF\u5F84\u300C{1}\u300D\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u590D\u5236",contextmenu:{copy:"\u590D\u5236{0}",copyWithPath:"\u590D\u5236\u8DEF\u5F84",copyRelativePath:"\u590D\u5236\u76F8\u5BF9\u8DEF\u5F84",lock:"\u9501\u5B9A",unlock:"\u89E3\u9501",delete:"\u5220\u9664",newFile:"\u65B0\u5EFA{0}",deleteGroup:"\u5220\u9664\u5206\u7EC4",exportGroup:"\u5BFC\u51FA\u5206\u7EC4",moveToRoot:"\u79FB\u52A8\u81F3\u6839\u8282\u70B9"},header:{expand:"\u5168\u90E8\u5C55\u5F00",collapse:"\u5168\u90E8\u6298\u53E0",asc:"\u6309\u5B57\u6BCD\u5347\u5E8F",desc:"\u6309\u5B57\u6BCD\u964D\u5E8F",position:"\u5B9A\u4F4D\u5F53\u524D\u6587\u4EF6"},form:{groupName:"\u5206\u7EC4\u540D\u79F0",groupPath:"\u5206\u7EC4\u8DEF\u5F84",placeholder:{name:"\u8BF7\u8F93\u5165{0}\u5206\u7EC4\u540D\u79F0",path:"\u8BF7\u8F93\u5165{0}\u5206\u7EC4\u8DEF\u5F84"}}},editor:{tab:{close:"\u5173\u95ED",closeOther:"\u5173\u95ED\u5176\u5B83",closeLeft:"\u5173\u95ED\u5DE6\u4FA7",closeRight:"\u5173\u95ED\u53F3\u4FA7",closeAll:"\u5168\u90E8\u5173\u95ED"},tooltip:{complection:"\u4EE3\u7801\u63D0\u793A",resume:"\u6062\u590D\u65AD\u70B9",stepInto:"\u6B65\u8FDB",format:"\u4EE3\u7801\u683C\u5F0F\u5316",recent:"\u6700\u8FD1\u6253\u5F00"},triggerSuggest:"\u89E6\u53D1\u4EE3\u7801\u63D0\u793A"},api:{title:"\u63A5\u53E3\u4FE1\u606F",name:"\u63A5\u53E3",form:{method:"\u8BF7\u6C42\u65B9\u6CD5",name:"\u63A5\u53E3\u540D\u79F0",path:"\u63A5\u53E3\u8DEF\u5F84",placeholder:{name:"\u8BF7\u8F93\u5165\u63A5\u53E3\u540D\u79F0",path:"\u8BF7\u8F93\u5165\u63A5\u53E3\u8DEF\u5F84"}},navbars:{parameter:"\u8BF7\u6C42\u53C2\u6570",header:"\u8BF7\u6C42Header",path:"\u8DEF\u5F84\u53D8\u91CF",body:"\u8BF7\u6C42Body",option:"\u63A5\u53E3\u9009\u9879",description:"\u63A5\u53E3\u63CF\u8FF0",groupOption:"\u5206\u7EC4\u9009\u9879"},validateType:"\u9A8C\u8BC1\u65B9\u5F0F",expression:"\u8868\u8FBE\u5F0F\u6216\u6B63\u5219\u8868\u8FBE\u5F0F",validate:"\u9A8C\u8BC1\u8BF4\u660E",field:"\u5B57\u6BB5",test:{requestBodyError:"RequestBody \u53C2\u6570\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\uFF01",missPath:"\u8BF7\u586B\u5199\u8DEF\u5F84\u53D8\u91CF\u540E\u5728\u6D4B\u8BD5\uFF01",requestError:"\u8BF7\u6C42\u300C{0}\u300D\u51FA\u9519",success:"\u300C{0}\u300D\u6D4B\u8BD5\u5B8C\u6BD5\uFF0C\u72B6\u6001\uFF1A{1} \u5927\u5C0F\uFF1A{2} \u8017\u65F6\uFF1A{3} ms",begin:"\u5F00\u59CB\u6D4B\u8BD5\u300C{0}\u300D"},structure:{content:"\u5F53\u524D {0} \u7ED3\u6784\u53D1\u751F\u53D8\u5316\uFF0C\u662F\u5426\u66F4\u65B0\uFF1F",ok:"\u66F4\u65B0"}},datasource:{title:"DataSource",name:"\u6570\u636E\u6E90",copySuccess:"\u590D\u5236{0}\u6210\u529F",copyFailed:"\u590D\u5236{0}\u5931\u8D25",test:"\u6D4B\u8BD5\u8FDE\u63A5",connected:"\u8FDE\u63A5\u6210\u529F",connectFailed:`\u8FDE\u63A5\u5931\u8D25\uFF0C\u9519\u8BEF\u539F\u56E0\uFF1A\r -{0}`,primary:"\u4E3B\u6570\u636E\u6E90",form:{placeholder:{name:"\u6570\u636E\u6E90\u540D\u79F0\uFF0C\u4EC5\u505A\u663E\u793A\u4F7F\u7528",key:"\u6570\u636E\u6E90Key\uFF0C\u540E\u7EED\u4EE3\u7801\u4E2D\u4F7F\u7528",url:"\u8BF7\u8F93\u5165jdbcURL\uFF0C\u5982\uFF1Ajdbc:mysql://localhost/dbname",username:"\u8BF7\u8F93\u5165\u6570\u636E\u5E93\u7528\u6237\u540D",password:"\u8BF7\u8F93\u5165\u6570\u636E\u5E93\u5BC6\u7801",driver:"\u9A71\u52A8\u7C7B\uFF0C\u53EF\u9009\uFF0C\u5185\u90E8\u81EA\u52A8\u8BC6\u522B\uFF0C\u4E5F\u53EF\u4EE5\u624B\u52A8\u8F93\u5165\u6307\u5B9A",type:"\u8FDE\u63A5\u6C60\u7C7B\u578B\uFF0C\u53EF\u9009\uFF0C\u4E5F\u53EF\u4EE5\u624B\u52A8\u8F93\u5165\u6307\u5B9A",maxRows:"\u6700\u591A\u8FD4\u56DE\u6761\u6570\uFF0C-1\u4E3A\u4E0D\u9650\u5236"},driver:"\u9A71\u52A8\u7C7B",type:"\u7C7B\u578B",other:"\u5176\u5B83\u914D\u7F6E"}},task:{title:"\u5B9A\u65F6\u4EFB\u52A1\u4FE1\u606F",name:"\u5B9A\u65F6\u4EFB\u52A1",form:{name:"\u4EFB\u52A1\u540D\u79F0",path:"\u4EFB\u52A1\u8DEF\u5F84",placeholder:{cron:"\u8BF7\u8F93\u5165Cron\u8868\u8FBE\u5F0F",name:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0",path:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u8DEF\u5F84",description:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u63CF\u8FF0"}}},fn:{title:"\u51FD\u6570\u4FE1\u606F",name:"\u51FD\u6570",number:"\u6570\u503C",string:"\u5B57\u7B26\u4E32",collection:"\u96C6\u5408",fnName:"\u51FD\u6570\u540D\u79F0",returnValue:"\u8FD4\u56DE\u503C",parameter:"\u51FD\u6570\u53C2\u6570",description:"\u51FD\u6570\u63CF\u8FF0",form:{name:"\u51FD\u6570\u540D\u79F0",path:"\u51FD\u6570\u8DEF\u5F84",placeholder:{name:"\u8BF7\u8F93\u5165\u51FD\u6570\u540D\u79F0",path:"\u8BF7\u8F93\u5165\u51FD\u6570\u8DEF\u5F84"}}},toolbars:{debug:"\u8C03\u8BD5\u4FE1\u606F",log:"\u8FD0\u884C\u65E5\u5FD7",history:"\u5386\u53F2\u8BB0\u5F55",event:"\u4E8B\u4EF6",global:"\u5168\u5C40\u53C2\u6570",response:"\u6267\u884C\u7ED3\u679C",viewHistory:"\u5386\u53F2\u8BB0\u5F55\uFF1A{0}"},event:{message:"\u4E8B\u4EF6\u5185\u5BB9"},history:{name:"\u5386\u53F2\u8BB0\u5F55",operator:"\u64CD\u4F5C\u4EBA"},upload:{full:"\u5168\u91CF\u4E0A\u4F20",increment:"\u589E\u91CF\u4E0A\u4F20",success:"{0}\u6210\u529F",failed:"{0}\u5931\u8D25"},push:{full:"\u5168\u91CF\u63A8\u9001",increment:"\u589E\u91CF\u63A8\u9001",success:"{0} Success",failed:"Failed to {0}"},backup:{full:"\u5168\u91CF\u5907\u4EFD",backupSuccess:"\u5168\u91CF\u5907\u4EFD\u5B8C\u6BD5",rollback:"\u8FD8\u539F",current:"\u5F53\u524D\u7248\u672C",difference:"\u5BF9\u6BD4\u4E0D\u540C",rollbackSuccess:"\u6062\u590D{0}\u6210\u529F",rollbackFailed:"\u6062\u590D{0}\u5931\u8D25",rollbackConfirm:"\u8BE5\u64CD\u4F5C\u4F1A\u8986\u76D6\u66F4\u65B0\u5F53\u524D\u8D44\u6E90\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F"},online:{login:"\u7528\u6237\u4E0A\u7EBF",loginTips:"\u7528\u6237\u300C{0}\u300D\u5DF2\u4E0A\u7EBF\uFF0CIP\uFF1A{1}",logout:"\u7528\u6237\u4E0B\u7EBF",logoutTips:"\u7528\u6237\u300C{0}\u300D\u5DF2\u4E0B\u7EBF\uFF0CIP\uFF1A{1}",onlines:"\u5F53\u524D\u5728\u7EBF\uFF1A{0}\u4EBA"},log:{hide:"\u70B9\u51FB\u9690\u85CF\u591A\u884C\u65E5\u5FD7",show:"\u6709 {0} \u884C\u65E5\u5FD7\u88AB\u9690\u85CF\uFF0C\u70B9\u51FB\u663E\u793A",scrollEnd:"\u6EDA\u52A8\u81F3\u7ED3\u5C3E"},code:{error:"\u8BF7\u6C42\u51FA\u9519\uFF0C\u5F02\u5E38\u4EE3\u7801({0})",invalid:"\u8BF7\u6C42\u51FA\u9519\uFF0CHttpStatus({0})",httpError:"\u8BF7\u6C42\u51FA\u9519","-2":"\u5F53\u524D\u4E3A\u53EA\u8BFB\u6A21\u5F0F\uFF0C\u65E0\u6CD5\u64CD\u4F5C","-10":"\u65E0\u6743\u9650\u64CD\u4F5C\u3002",1001:"\u627E\u4E0D\u5230\u5206\u7EC4\u4FE1\u606F",1002:"\u4E0D\u652F\u6301\u8BE5\u5206\u7EC4\u7C7B\u578B",1003:"\u76EE\u6807\u7F51\u5740\u4E0D\u80FD\u4E3A\u7A7A",1004:"secretKey\u4E0D\u80FD\u4E3A\u7A7A",1005:"\u79FB\u52A8\u540E\u540D\u79F0\u4F1A\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540D\u79F0\u540E\u5728\u8BD5\u3002",1006:"\u6E90\u5BF9\u8C61\u548C\u5206\u7EC4\u4E0D\u80FD\u4E00\u81F4",1007:"\u627E\u4E0D\u5230\u5BF9\u5E94\u6587\u4EF6\u6216\u5206\u7EC4",1008:"\u5F53\u524D\u8D44\u6E90\u5DF2\u88AB\u9501\u5B9A\uFF0C\u8BF7\u89E3\u9501\u540E\u5728\u64CD\u4F5C\u3002",1009:"\u8BE5\u8DEF\u5F84\u5DF2\u88AB\u4F7F\u7528,\u8BF7\u6362\u4E00\u4E2A\u8DEF\u5F84\u5728\u8BD5",1010:"\u8D44\u6E90\u4E2D[{0}]\u6709\u51B2\u7A81\uFF0C\u8BF7\u68C0\u67E5",1011:"\u79FB\u52A8\u540E\u8DEF\u5F84\u4F1A\u51B2\u7A81,\u8BF7\u6362\u4E00\u4E2A\u8DEF\u5F84\u5728\u8BD5",1012:"\u8BF7\u6C42\u65B9\u6CD5\u4E0D\u80FD\u4E3A\u7A7A",1013:"\u8BF7\u6C42\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A",1014:"\u51FD\u6570\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A",1015:"\u914D\u7F6E\u7684\u6587\u4EF6\u8DEF\u5F84\u4E0D\u5B58\u5728\uFF0C\u8BF7\u68C0\u67E5",1016:"\u63A5\u53E3[{0}({1})]\u4E0E\u5E94\u7528\u51B2\u7A81\uFF0C\u65E0\u6CD5\u6CE8\u518C",1017:"\u811A\u672C\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",1018:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",1019:"\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A",1020:"jdbcURL\u4E0D\u80FD\u4E3A\u7A7A",1021:"key\u4E0D\u80FD\u4E3A\u7A7A",1022:"\u6570\u636E\u6E90key\u5DF2\u88AB\u4F7F\u7528\uFF0C\u8BF7\u66F4\u6362\u540E\u5728\u8BD5",1023:"\u8BF7\u9009\u62E9\u5206\u7EC4",1024:"cron\u8868\u8FBE\u5F0F\u4E0D\u80FD\u4E3A\u7A7A",1025:"\u540D\u79F0\u4E0D\u80FD\u5305\u542B\u7279\u6B8A\u5B57\u7B26\uFF0C\u53EA\u5141\u8BB8\u4E2D\u6587\u3001\u6570\u5B57\u3001\u5B57\u6BCD\u4EE5\u53CA+_-.()\u7684\u7EC4\u5408\u4E14\u4E0D\u80FD.\u5F00\u5934",1026:"\u6570\u636E\u6E90Key\u4E0D\u80FD\u5305\u542B\u7279\u6B8A\u5B57\u7B26\uFF0C\u53EA\u5141\u8BB8\u4E2D\u6587\u3001\u6570\u5B57\u3001\u5B57\u6BCD\u4EE5\u53CA_\u7EC4\u5408",1027:"\u4FDD\u5B58\u5931\u8D25,\u540C\u4E00\u7EC4\u4E0B\u5206\u7EC4\u540D\u79F0\u4E0D\u80FD\u91CD\u590D\u4E14\u4E0D\u80FD\u5305\u542B\u7279\u6B8A\u5B57\u7B26\u3002",1028:"\u53C2\u6570\u9A8C\u8BC1\u5931\u8D25",1029:"header\u9A8C\u8BC1\u5931\u8D25",1030:"\u8DEF\u5F84\u53D8\u91CF\u9A8C\u8BC1\u5931\u8D25",1031:"body\u9A8C\u8BC1\u5931\u8D25",1032:"\u8BF7\u4E0A\u4F20\u6587\u4EF6",1033:"\u7B7E\u540D\u9A8C\u8BC1\u5931\u8D25,\u8BF7\u68C0\u67E5\u79D8\u94A5\u662F\u5426\u6B63\u786E",1034:"\u672A\u542F\u7528\u5907\u4EFD\uFF0C\u65E0\u6CD5\u64CD\u4F5C",1035:"\u627E\u4E0D\u5230\u63A5\u53E3"}},mi=Object.freeze(Object.defineProperty({__proto__:null,default:$t},Symbol.toStringTag,{value:"Module"}));const vi=De.get("locale");let Jt=$t;vi==="en"&&(Jt=Na);function c(e,...t){try{const a=e.split(".").reduce((n,i)=>n[i],Jt);return a&&t.length>0?a.replace(/\{(\d+)\}/g,(n,i)=>t[i]):a||e}catch{return e}}function bi(e,t){let a=$t;e==="en"&&(a=Na);const n=(i,s)=>{Object.entries(s).forEach(([o,r])=>{typeof r=="string"?i[o]=r:(i[o]||(i[o]={}),n(i[o],r))})};n(a,t)}function Ei(e,t){if($t===Jt)return t;const a=$t.code[`${e}`],n=Jt.code[`${e}`];if(a&&n){const i=a.replace(/([()\[\]\.])/g,"\\$1").replace(/{\d+}/g,"(.*?)");if(i){const s=[],o=new RegExp(i,"g");let r;for(;(r=o.exec(t))!=null;)s.push(r);return c(`code.${e}`,s.splice(0,1))}}return t}let _n=hi.version,yi="V"+_n.replace(/\./g,"_");const D={BASE_URL:"",WEBSOCKET_SERVER:"",SERVER_URL:"",AUTO_SAVE:!0,user:null,DECORATION_TIMEOUT:1e4,CHECK_UPDATE:!0,BLOCK_CLOSE:!0,MAGIC_API_VERSION_TEXT:_n,MAGIC_API_VERSION:yi,API_DEFAULT_METHOD:"GET",CLIENT_ID:"none",HEADER_REQUEST_CLIENT_ID:"Magic-Request-Client-Id",HEADER_REQUEST_SCRIPT_ID:"Magic-Request-Script-Id",HEADER_REQUEST_BREAKPOINTS:"Magic-Request-Breakpoints",HEADER_RESPONSE_MAGIC_CONTENT_TYPE:"ma-content-type",HEADER_APPLICATION_STREAM:"application/octet-stream",HEADER_CONTENT_DISPOSITION:"ma-content-disposition",HEADER_MAGIC_TOKEN:"magic-token",HEADER_MAGIC_TOKEN_VALUE:"unauthorization",IGNORE_VERSION:"ignore-version",RECENT_OPENED_TAB:"recent_opened_tab",RECENT_OPENED:"recent_opened",RESPONSE_CODE_DEBUG:1e3,RESPONSE_CODE_SCRIPT_ERROR:-1e3,RESPONSE_NO_PERMISSION:-10,DEFAULT_EXPAND:!0,LOGINED:!1,LOG_MAX_ROWS:1/0,LOCKED:"1",UNLOCK:"0",STORE:{theme:"theme",token:"token"},PLUGINS:[],GLOBAL:{parameters:[],headers:[]},THEME:"default",JDBC_DRIVERS:["com.mysql.jdbc.Driver","com.mysql.cj.jdbc.Driver","oracle.jdbc.driver.OracleDriver","org.postgresql.Driver","com.microsoft.sqlserver.jdbc.SQLServerDriver","com.ibm.db2.jcc.DB2Driver"],DATASOURCE_TYPES:["com.zaxxer.hikari.HikariDataSource","com.alibaba.druid.pool.DruidDataSource","org.apache.tomcat.jdbc.pool.DataSource","org.apache.commons.dbcp2.BasicDataSource"],OPTIONS:[],EDITOR_FONT_FAMILY:'JetBrainsMono, Consolas, "Courier New",monospace, \u5FAE\u8F6F\u96C5\u9ED1',EDITOR_FONT_SIZE:14,FONT_LIGATURES:!0,VALIDATE_TYPES:[{value:"pass",text:c("message.noValidate")},{value:"expression",text:c("message.validateExpression")},{value:"pattern",text:c("message.validatePattern")}],DEFAULT_VALIDATE_TYPE:"pass",REQUEST_PARAMETER_TYPES:[{value:"String",text:"String"},{value:"Boolean",text:"Boolean"},{value:"Integer",text:"Integer"},{value:"Date",text:"Date"},{value:"Double",text:"Double"},{value:"Long",text:"Long"},{value:"Short",text:"Short"},{value:"Float",text:"Float"},{value:"Byte",text:"Byte"},{value:"MultipartFile",text:"MultipartFile"},{value:"MultipartFiles",text:"MultipartFiles"}],GLOBAL_PARAMETER_TYPES:[{value:"String",text:"String"},{value:"Boolean",text:"Boolean"},{value:"Integer",text:"Integer"},{value:"Date",text:"Date"},{value:"Double",text:"Double"},{value:"Long",text:"Long"},{value:"Short",text:"Short"},{value:"Float",text:"Float"},{value:"Byte",text:"Byte"}],DEFAULT_REQUEST_PARAMETER_TYPE:"String",REQUEST_SIMPLE_TYPES:[{value:"String",text:"String"},{value:"Boolean",text:"Boolean"},{value:"Integer",text:"Integer"},{value:"Date",text:"Date"},{value:"Double",text:"Double"},{value:"Long",text:"Long"},{value:"Short",text:"Short"},{value:"Float",text:"Float"},{value:"Byte",text:"Byte"}],DEFAULT_REQUEST_SIMPLE_TYPE:"String",REQUEST_METHODS:[{value:"GET",text:"GET"},{value:"POST",text:"POST"},{value:"PUT",text:"PUT"},{value:"DELETE",text:"DELETE"},{value:"HEAD",text:"HEAD"},{value:"PATCH",text:"PATCH"}],DEFAULT_REQUEST_METHOD:"GET",FUNCTION_RETURN_TYPES:[{value:"java.lang.Number",text:c("fn.number")},{value:"java.lang.String",text:c("fn.string")},{value:"java.util.Collection",text:c("fn.collection")},{value:"java.util.Map",text:"Map"},{value:"java.lang.Object",text:"Object"}],BODY_DATA_TYPES:[{value:"String",text:"String"},{value:"Integer",text:"Integer"},{value:"Double",text:"Double"},{value:"Long",text:"Long"},{value:"Short",text:"Short"},{value:"Float",text:"Float"},{value:"Byte",text:"Byte"},{value:"Boolean",text:"Boolean"},{value:"Date",text:"Date"},{value:"Object",text:"Object"},{value:"Array",text:"Array"},{value:"Any",text:"Any"}],DEFAULT_FUNCTION_RETURN_TYPE:"java.lang.Object",config:{}},Ti={style:{"white-space":"pre-wrap"}},hn={__name:"magic-alert",props:{title:{type:String,default:c("message.tips")},ok:{type:String,default:c("message.ok")},message:{type:String,required:!0},onClose:{type:Function,default:()=>{}}},setup(e){const t=U(!0);return(a,n)=>{const i=y("magic-button"),s=y("magic-button-group"),o=y("magic-dialog");return v(),j(o,{value:t.value,"onUpdate:value":n[1]||(n[1]=r=>t.value=r),title:e.title,ref:"dialog",onClose:n[2]||(n[2]=r=>e.onClose())},{default:w(()=>[R("pre",Ti,F(e.message),1),_(s,{align:"center",style:{padding:"5px 0"}},{default:w(()=>[_(i,{value:e.ok,type:"active",onOnClick:n[0]||(n[0]=r=>a.$refs.dialog.close())},null,8,["value"])]),_:1})]),_:1},8,["value","title"])}}};var Si=Object.freeze(Object.defineProperty({__proto__:null,default:hn},Symbol.toStringTag,{value:"Module"}));const xi=["innerHTML"],fn={__name:"magic-confirm",props:{title:{type:String,default:c("message.tips")},ok:{type:String,default:c("message.ok")},cancel:{type:String,default:c("message.cancel")},message:{type:String,required:!0},success:{type:Function,default:()=>{}},onClose:{type:Function,default:()=>{}}},setup(e){const t=U(!0);return(a,n)=>{const i=y("magic-button"),s=y("magic-button-group"),o=y("magic-dialog");return v(),j(o,{value:t.value,"onUpdate:value":n[2]||(n[2]=r=>t.value=r),title:e.title,ref:"dialog",onClose:n[3]||(n[3]=r=>e.onClose())},{default:w(()=>[R("pre",{innerHTML:e.message,style:{"white-space":"pre-wrap"}},null,8,xi),_(s,{align:"right",style:{padding:"5px 0"}},{default:w(()=>[_(i,{value:e.ok,type:"active",onOnClick:n[0]||(n[0]=()=>{e.success(),a.$refs.dialog.close()})},null,8,["value"]),_(i,{value:e.cancel,onOnClick:n[1]||(n[1]=r=>a.$refs.dialog.close())},null,8,["value"])]),_:1})]),_:1},8,["value","title"])}}};var Oi=Object.freeze(Object.defineProperty({__proto__:null,default:fn},Symbol.toStringTag,{value:"Module"}));let gn=null;const qa=(e,t)=>{const a=document.createElement("div");document.querySelector(".magic-editor .magic-mounts").appendChild(a);const n=Ia(e,{...t,onClose:()=>a.remove()});gn(n),n.mount(a)},me={alert:(e,t,a)=>qa(hn,{message:e,title:t,ok:a}),confirm:(e,t,a)=>qa(fn,{title:e,message:t,success:a})},mn=(e,t)=>{gn=t,Object.keys(me).forEach(a=>e.config.globalProperties[`$${a}`]=me[a])};var Ri=Object.freeze(Object.defineProperty({__proto__:null,install:mn,default:me},Symbol.toStringTag,{value:"Module"}));function Re(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}Re.prototype.clone_empty=function(){var e=new Re(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e};Re.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]};Re.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1};Re.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))};Re.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)};Re.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count};Re.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,e.__items[0]===" "&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1};Re.prototype.is_empty=function(){return this.__items.length===0};Re.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]};Re.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf(` -`);t!==-1?this.__character_count=e.length-t:this.__character_count+=e.length};Re.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e};Re.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)};Re.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)};Re.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1};Re.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e};function Ht(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}Ht.prototype.get_indent_size=function(e,t){var a=this.__base_string_length;return t=t||0,e<0&&(a=0),a+=e*this.__indent_size,a+=t,a};Ht.prototype.get_indent_string=function(e,t){var a=this.__base_string;return t=t||0,e<0&&(e=0,a=""),t+=e*this.__indent_size,this.__ensure_cache(t),a+=this.__cache[t],a};Ht.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()};Ht.prototype.__add_column=function(){var e=this.__cache.length,t=0,a="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,a=new Array(t+1).join(this.__indent_string)),e&&(a+=new Array(e+1).join(" ")),this.__cache.push(a)};function Ae(e,t){this.__indent_cache=new Ht(e,t),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new Re(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}Ae.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)};Ae.prototype.get_line_number=function(){return this.__lines.length};Ae.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)};Ae.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)};Ae.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()};Ae.prototype.add_new_line=function(e){return this.is_empty()||!e&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)};Ae.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&(t[t.length-1]===` +var Bn=Object.defineProperty;var Hn=(e,t,a)=>t in e?Bn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var _t=(e,t,a)=>(Hn(e,typeof t!="symbol"?t+"":t,a),a);import{r as y,o as v,c as V,u as h,a as U,w,b as R,t as F,d as _,e as Ra,p as Ye,g as bt,f as pt,h as jn,i as We,n as be,j as k,k as gt,v as Mt,l as X,m as Ve,q as ye,F as te,s as fe,x as ve,y as pe,z as Et,A as et,B as _e,C as le,T as cn,D as Be,E as Vn,G as Gn,H as zn,I as oe,J as Yn,K as un,L as ee,M as mt,N as qn,O as Ue,P as Aa,Q as Ca,R as Kn,S as Wn,V as Xn}from"./vue.6f28a6f0.js";import{a as Jn}from"./axios.23e7b955.js";import{l as ja,e as $e,a as W,R as st,W as Qn,b as Zn,c as ei,m as ti,C as Va,K as ct,d as ht,M as ai,f as ni,g as na,T as ii,t as si}from"./vendor.3be44c84.js";const oi={__name:"App",setup(e){let t={};try{parent&&parent.MAGIC_EDITOR_CONFIG&&(t={...parent.MAGIC_EDITOR_CONFIG})}catch{}window.MAGIC_EDITOR_CONFIG&&(t={...t,...window.MAGIC_EDITOR_CONFIG}),t.baseURL="./",t.serverURL="./",t.inJar=!0;const a=s=>{var o=window.location.search.substr(1).match(new RegExp("(^|&)"+s+"=([^&]*)(&|$)","i"));return o&&unescape(o[2])},n=a("headerName"),i=a("headerValue");return n&&i&&(t.request=t.request||{},t.request.beforeSend=s=>(s.headers[n]=i,s)),(s,o)=>{const r=y("magic-editor");return v(),V(r,{config:h(t)},null,8,["config"])}}};const ri="magic-editor",li="2.1.1",ci={dev:"vite",build:"vite build"},ui={axios:"^0.24.0","monaco-editor":"0.29.1",qs:"^6.10.1",vue:"^3.2.31"},di={"@vitejs/plugin-vue":"^2.2.4",vite:"^2.8.6","vite-plugin-svg-icons":"^1.1.0"};var pi={name:ri,version:li,scripts:ci,dependencies:ui,devDependencies:di};const ia="magic-";class _i{constructor(){}set(t,a){(Array.isArray(a)||typeof a=="object")&&(a=JSON.stringify(a)),localStorage.setItem(`${ia}${t}`,a)}remove(t){localStorage.removeItem(`${ia}${t}`)}get(t){return localStorage.getItem(`${ia}${t}`)}}var De=new _i,Ia={name:"English",message:{run:"Run",save:"Save",search:"Search",upload:"Upload",export:"Export",push:"Push",skin:"Skin",reload:"reload all resources",copy:"Copy",searchText:"Enter keywords to search",required:"Required",defaultValue:"Default Value",description:"Description",parameterType:"Parameter Type",view:"View",addRow:"Add Row",removeRow:"Remove Row",all:"All",clear:"Clear",empty:"{0} is empty.",type:"Type",date:"Date",name:"Name",group:"{0} Group",i18n:"Language",tips:"Tips",ok:"OK",refresh:"Refresh",loading:"Loading...",nodata:"no data.",cancel:"Cancel",update:"Update",create:"Create",username:"Username",password:"Password",createDataSource:"Create {0}",chooseFile:"Please Choose File",expand:"Expand",collapse:"Collapse",selectAll:"Select All",deselectAll:"Deselect All",hide:"Hide",login:"Login",ignore:"Ignore",document:"Document",joinGroup:"Join QQ Group",untitled:"Untitled",log:"Log",enable:"Enable",variable:"Variable Info",switchLocale:"Switch Language To {0}, It work at after refreshing the page, Do you want to Refresh the page ?",loadClass:"Load Classes...",loadClassError:"Failed Load Classes",switchSkin:"Switch Skin To\u300C{0}\u300D",loadClassFinish:"Class Loaded",tryAutoLogin:"Try Auto Login",autoLoginSuccess:"Auto Login Success",getCurrentLoginUser:"Load Current Logined User",getResource:"Load {0} Resources",getResourceFinish:"{0} Resources Loaded",connectDebugServer:"Debug Server Connecting...",debugServerClose:"Debug Server Disconnected",connectDebugServerSuccess:"Connect Debug Server Success",reloadResourceSuccess:"Resource Reload Success",getDetail:"Load {0} Detail",getDetailSuccess:"Load {0} Detail Success",lockSuccess:"Lock {0} Success",lockFailed:"Failed to Lock {0}",unlockSuccess:"UnLock {0} Success",unlockFailed:"Failed to UnLock {0}",updateTips:"Update {0}",saveSuccess:"Save {0} Success",saveFailed:"Failed to Save {0}",newVersionRelease:"New Version {0} available",versionLastest:"Current Version is Lastese",versionUpdate:"New Version {0} available
Do you want Upgrade?",changelog:"CHANGELOG",versionConflict:"Version does not matched frontend: {0}, backend: {1}, Please Check!",versionCheck:"Version Check",loadConfigError:"Failed to load configuration",logout:"Logout",logoutSuccess:"Logout Success",logoutConfirm:"Are you sure Logout {0} ?",deleteConfirm:"Do you want Delete {0}",deleteSuccess:"Delete {0} Success",deleteFailed:"Failed to Delete {0}",deleteTips:"Delete {0}",remote:"Remote",secret:"Secret",exported:"The selected resource has been exported",exportNoneSelect:"Please select and then export",pushNoneSelect:"Please select and then push",responseBody:"Body",responseHeader:"Header",responseStructure:"Structure",root:"Root",pushWarning:"When the full mode is pushed, the local data shall prevail and the full coverage update will be carried out. Do you want to continue?",uploadWarning:"When uploading in full mode, the overwrite update operation is performed based on the uploaded data, and other interfaces may be deleted.
In the case of partial export, it is recommended to use incremental update. Do you want to continue?",noValidate:"No Validate",validatePattern:"Regex attern",validateExpression:"Expression"},plugin:{loading:"Load plugin \u300C{0}\u300D",loaded:"Plugin\u300C{0}\u300D Loaded",loadFailed:"Failed to load plugin\u300C{0}\u300D"},resource:{createGroup:"Create Group",updateGroup:"Update Group",copyGroup:"Copy Group",deleteGroupConfirm:"Do you want Delete {0} Group\u300C{1}\u300D?",deleteGroupSuccess:"Delete {0} Group\u300C{1}\u300DSuccess",deleteGroupFailed:"Failed to Delete {0} Group \u300C{1}\u300D",groupExport:"Group\u300C{0}\u300D's {1} Exported",moveGroup:"Move Group",moveRootGroupConfirm:"Do you want move Group \u300C{0}\u300Dinto root?",moveRootSuccess:"Move {0} Group \u300C{1}\u300Dinto root Success",moveRootFailed:"Failed to Move {0} Group\u300C{1}\u300D into root",moveGroupSuccess:"Move {0} Group \u300C{1}\u300D Success",moveGroupFailed:"Failed to Move {0} Group \u300C{1}\u300D",moveFileSuccess:"Move {0} Success",moveResourceFailed:"Failed to Move {0}",saveGroupSuccess:"Save {0} Group {1}\u300D Success",saveGroupFailed:"Failed to Save {0} Group \u300C{1}\u300D",copyPathSuccess:"Copy {0} Path {1}\u300D Success",copyPathFailed:"Failed to Copy {0} Path \u300C{1}\u300D",copyRelativePathSuccess:"Copy {0} Relative Path \u300C{1}\u300D Success",copyRelativePathFailed:"Failed to Copy {0} Relative Path \u300C{1}\u300D",contextmenu:{copy:"Copy {0}",copyWithPath:"Copy Absolute Path",copyRelativePath:"Copy Relative Path",lock:"Lock",unlock:"UnLock",delete:"Delete",newFile:"New {0}",deleteGroup:"Delete Group",exportGroup:"Export Group",moveToRoot:"Move To Root"},header:{expand:"Expand All",collapse:"Collapse All",asc:"Ascending",desc:"Descending",position:"Select Opened File"},form:{groupName:"Group Name",groupPath:"Group Path",placeholder:{name:"Please Enter {0} Group Name",path:"Please Enter {0} Group Path"}}},editor:{tab:{close:"Close",closeOther:"Close Other Tabs",closeLeft:"Close Tabs to the Left",closeRight:"Close Tabs to the Right",closeAll:"Close All Tabs"},tooltip:{complection:"Trigger Suggest",resume:"Resume Breakpoint",stepInto:"Step Into",format:"Reformat Code",recent:"Recent Opened Files"},triggerSuggest:"Trigger Suggest"},api:{title:"Api Info",name:"Api",form:{method:"Method",name:"Name",path:"Path",placeholder:{name:"Please Enter Api Name",path:"Please Enter Api Path"}},navbars:{parameter:"Parameters",header:"Headers",path:"PathVariables",body:"Body",option:"Options",description:"Descriptions",groupOption:"Group Options"},validateType:"Validate Type",expression:"Expression or Regex Pattern",validate:"Validate Description",field:"Field",test:{requestBodyError:"RequestBody Has Error, please check!",missPath:"Please enter PathVariable",requestError:"Failed to send Request\u300C{0}\u300D",success:"\u300C{0}\u300DRequest finish, Status:{1} Size:{2} Time\uFF1A{3} ms",begin:"Start Request For\u300C{0}\u300D"},structure:{content:"{0} Structure has changed, Do you wang to change\uFF1F",ok:"Change"}},datasource:{title:"DataSource",name:"DataSource",copySuccess:"Copy {0} Success",copyFailed:"Failed to Copy {0}",test:"Test",connected:"Connected",connectFailed:`Failed to Connect, Reason:\r +{0}`,primary:"Primary",form:{placeholder:{name:"DataSource Name, Only Display Use",key:"DataSource Key, Required",url:"Please Enter jdbcURL\uFF0Ceg: jdbc:mysql://localhost/dbname",username:"Please Enter Database username, Optional",password:"Please Enter Database password, Optional",driver:"DriverClass, Optional",type:"Pool Type, Optional",maxRows:"Max Return Rows"},driver:"Driver",type:"Type",other:"Others"}},fn:{title:"Function Info",name:"Function",number:"Nunmber",string:"String",collection:"Collection",returnValue:"Return Types",parameter:"Function Parameters",description:"Function Description",form:{name:"Name",path:"Path",placeholder:{name:"Please Enter Function Name",path:"Please Enter Function Path"}}},toolbars:{debug:"Debug",log:"Run Log",history:"History",event:"Event",global:"Global Parameters",response:"Response",viewHistory:"History:{0}"},event:{message:"Message"},history:{name:"History",operator:"Operators"},upload:{full:"Full Upload",increment:"Increment Upload",success:"{0} Success",failed:"Failed to {0}"},push:{full:"Full Push",increment:"Increment Push",success:"{0} Success",failed:"Failed to {0}"},backup:{full:"Full Backup",backupSuccess:"Full Backup Success",rollback:"Rollback",current:"Current",difference:"Difference",rollbackSuccess:"Rollback {0} Success",rollbackFailed:"Failed to Rollback {0}",rollbackConfirm:"this operation will overview current resources, Do you want to continue?"},online:{login:"User Login",loginTips:"User {0} Login, IP: {1}",logout:"User Logout",logoutTips:"User {0} Logout, IP: {1}",onlines:"Online: {0}"},log:{hide:"Click to hide multiline log",show:"{0} lines of log are hidden, Click to show",scrollEnd:"Scroll to End"},code:{error:"Error({0})",invalid:"Error,HttpStatus({0})",httpError:"Error","-2":"Current is Readonly, Cannot be Operated","-10":"Unauthorized Operation",1001:"Group Not Found",1002:"Not Support the Group Type",1003:"Remote Cannot be empty",1004:"secretKey Cannot be empty",1005:"The name will repeat after moving. Please modify the name and try again.",1006:"Source object and grouping cannot be consistent",1007:"Resoirce Not Found",1008:"The current resource has been locked. Please operate after unlocking",1009:"This path has been used. Please try another path",1010:"There are conflicts in resource [{0}], please check",1011:"The path will conflict after moving. Please try another path",1012:"Request Method Cannot be empty",1013:"Reqeust Path Cannot be empty",1014:"Function Path Cannot be empty",1015:"The configured file path does not exist, please check",1016:"The Api [{0} ({1})] conflicts with the application and cannot be registered",1017:"Script Cannot be empty",1018:"Name Cannot be empty",1019:"Path Cannot be empty",1020:"jdbcURL Cannot be empty",1021:"key Cannot be empty",1022:"The data source key has been used. Please replace it and try again",1023:"Please Choose Group",1024:"Cron Expression Cannot be empty",1025:"The name cannot contain special characters. Only Chinese, numbers, letters and +-.() and . cannot be start",1026:"The data source key cannot contain special characters, only Chinese, numbers, letters, _",1027:"Failed to save. The group name under the same group cannot be duplicate and cannot contain special characters.",1028:"Parameter validation failed",1029:"Header validation failed",1030:"PathVariable validation failed",1031:"RequestBody validation failed",1032:"Please Upload File",1033:"Failed to validate Signature. Please check whether the secret key is correct",1034:"Backup is not enabled and cannot be operated",1035:"Api Not Found"}},hi=Object.freeze(Object.defineProperty({__proto__:null,default:Ia},Symbol.toStringTag,{value:"Module"})),Pt={name:"\u7B80\u4F53\u4E2D\u6587",message:{run:"\u8FD0\u884C",save:"\u4FDD\u5B58",search:"\u641C\u7D22",upload:"\u4E0A\u4F20",export:"\u5BFC\u51FA",push:"\u63A8\u9001",skin:"\u76AE\u80A4",reload:"\u91CD\u65B0\u52A0\u8F7D\u6240\u6709\u6570\u636E",copy:"\u590D\u5236",searchText:"\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22",required:"\u5FC5\u586B",defaultValue:"\u9ED8\u8BA4\u503C",description:"\u63CF\u8FF0",parameterType:"\u53C2\u6570\u7C7B\u578B",view:"\u89C6\u56FE",addRow:"\u589E\u52A0\u4E00\u884C",removeRow:"\u5220\u9664\u4E00\u884C",all:"\u5168\u90E8",clear:"\u6E05\u7A7A",empty:"\u6682\u65E0{0}",type:"\u7C7B\u578B",date:"\u65F6\u95F4",name:"\u540D\u79F0",group:"{0}\u5206\u7EC4",i18n:"\u8BED\u8A00",tips:"\u63D0\u793A",ok:"\u786E\u5B9A",refresh:"\u5237\u65B0",loading:"\u52A0\u8F7D\u4E2D",nodata:"\u65E0\u6570\u636E",cancel:"\u53D6\u6D88",update:"\u4FEE\u6539",create:"\u521B\u5EFA",username:"\u7528\u6237\u540D",password:"\u5BC6\u7801",createDataSource:"\u521B\u5EFA{0}",chooseFile:"\u8BF7\u9009\u62E9\u6587\u4EF6",expand:"\u5C55\u5F00",collapse:"\u6536\u7F29",selectAll:"\u5168\u9009",deselectAll:"\u53D6\u6D88\u5168\u9009",hide:"\u9690\u85CF",login:"\u767B\u5F55",ignore:"\u4E0D\u518D\u63D0\u9192",document:"\u5E2E\u52A9\u6587\u6863",joinGroup:"\u52A0\u5165QQ\u7FA4",untitled:"\u672A\u5B9A\u4E49\u540D\u79F0",log:"\u65E5\u5FD7",enable:"\u542F\u7528",variable:"\u53D8\u91CF\u4FE1\u606F",switchLocale:"\u5DF2\u5207\u6362\u81F3{0}\uFF0C\u5237\u65B0\u9875\u9762\u540E\u751F\u6548\uFF0C\u662F\u5426\u5237\u65B0\uFF1F",loadClass:"\u52A0\u8F7Dclasses\u4FE1\u606F...",loadClassError:"\u52A0\u8F7Dclasses\u4FE1\u606F\u5931\u8D25",switchSkin:"\u5207\u6362\u76AE\u80A4\u81F3\u300C{0}\u300D",loadClassFinish:"classes\u4FE1\u606F\u52A0\u8F7D\u5B8C\u6BD5",tryAutoLogin:"\u5C1D\u8BD5\u81EA\u52A8\u767B\u5F55",autoLoginSuccess:"\u81EA\u52A8\u767B\u5F55\u6210\u529F",getCurrentLoginUser:"\u83B7\u53D6\u5F53\u524D\u767B\u5F55\u7528\u6237\u4FE1\u606F",getResource:"\u83B7\u53D6{0}\u8D44\u6E90",getResourceFinish:"\u83B7\u53D6{0}\u8D44\u6E90\u5B8C\u6BD5",connectDebugServer:"\u8FDE\u63A5\u8C03\u8BD5\u670D\u52A1\u5668...",debugServerClose:"\u8C03\u8BD5\u670D\u52A1\u5668\u5DF2\u65AD\u5F00",connectDebugServerSuccess:"\u8FDE\u63A5\u8C03\u8BD5\u670D\u52A1\u5668\u6210\u529F",reloadResourceSuccess:"\u91CD\u65B0\u52A0\u8F7D\u8D44\u6E90\u6210\u529F",getDetail:"\u83B7\u53D6{0}",getDetailSuccess:"\u83B7\u53D6{0}\u8BE6\u60C5\u6210\u529F",lockSuccess:"\u6210\u529F\u9501\u5B9A{0}",lockFailed:"\u9501\u5B9A{0}\u5931\u8D25",unlockSuccess:"\u6210\u529F\u89E3\u9501{0}",unlockFailed:"\u89E3\u9501{0}\u5931\u8D25",updateTips:"\u4FEE\u6539{0}",saveSuccess:"\u4FDD\u5B58{0}\u6210\u529F",saveFailed:"\u4FDD\u5B58{0}\u5931\u8D25",newVersionRelease:"\u7248\u672C\u68C0\u6D4B\u5B8C\u6BD5\uFF0C\u6700\u65B0\u7248\u672C\u4E3A\uFF1A{0},\u5EFA\u8BAE\u66F4\u65B0\uFF01\uFF01",versionLastest:"\u7248\u672C\u68C0\u6D4B\u5B8C\u6BD5\uFF0C\u5F53\u524D\u5DF2\u662F\u6700\u65B0\u7248",versionUpdate:"\u68C0\u6D4B\u5230\u5DF2\u6709\u65B0\u7248\u672C{0}\uFF0C\u662F\u5426\u66F4\u65B0\uFF1F",changelog:"\u66F4\u65B0\u65E5\u5FD7",versionConflict:"\u68C0\u6D4B\u5230\u524D\u540E\u7AEF\u7248\u672C\u4E0D\u4E00\u81F4\uFF08\u524D\u7AEF\uFF1A{0} \u540E\u7AEF\uFF1A{1}\uFF09\uFF0C\u8BF7\u68C0\u67E5",versionCheck:"\u7248\u672C\u68C0\u6D4B",loadConfigError:"\u52A0\u8F7D\u914D\u7F6E\u5931\u8D25",logout:"\u6CE8\u9500\u767B\u5F55",logoutSuccess:"\u6CE8\u9500\u767B\u5F55\u6210\u529F",logoutConfirm:"\u662F\u5426\u8981\u6CE8\u9500\u767B\u5F55\u300C{0}\u300D",deleteConfirm:"\u662F\u5426\u8981\u5220\u9664{0}",deleteSuccess:"\u5220\u9664{0}\u6210\u529F",deleteFailed:"\u5220\u9664{0}\u5931\u8D25",deleteTips:"\u5220\u9664{0}",remote:"\u8FDC\u7A0B\u5730\u5740",secret:"\u79D8\u94A5",exported:"\u6570\u636E\u5DF2\u5BFC\u51FA\u5B8C\u6BD5",exportNoneSelect:"\u8BF7\u9009\u62E9\u4E4B\u518D\u5728\u8FDB\u884C\u5BFC\u51FA\uFF01",pushNoneSelect:"\u8BF7\u9009\u62E9\u4E4B\u540E\u518D\u8FDB\u884C\u63A8\u9001\uFF01",responseBody:"Body",responseHeader:"\u54CD\u5E94Header",responseStructure:"\u54CD\u5E94\u7ED3\u6784",root:"\u6839\u8282\u70B9",pushWarning:"\u5168\u91CF\u6A21\u5F0F\u63A8\u9001\u65F6\uFF0C\u4EE5\u672C\u5730\u6570\u636E\u4E3A\u51C6\u5168\u91CF\u8986\u76D6\u66F4\u65B0\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",uploadWarning:"\u5168\u91CF\u6A21\u5F0F\u4E0A\u4F20\u65F6\uFF0C\u4EE5\u4E0A\u4F20\u7684\u6570\u636E\u4E3A\u51C6\u8FDB\u884C\u8986\u76D6\u66F4\u65B0\u64CD\u4F5C\uFF0C\u53EF\u80FD\u4F1A\u5220\u9664\u5176\u4ED6\u63A5\u53E3
\u5728\u975E\u5168\u91CF\u5BFC\u51FA\u65F6\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u589E\u91CF\u66F4\u65B0\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",noValidate:"\u4E0D\u9A8C\u8BC1",validatePattern:"\u6B63\u5219\u9A8C\u8BC1",validateExpression:"\u8868\u8FBE\u5F0F\u9A8C\u8BC1"},plugin:{loading:"\u52A0\u8F7D\u63D2\u4EF6\u300C{0}\u300D",loaded:"\u5DF2\u52A0\u8F7D\u63D2\u4EF6\u300C{0}\u300D",loadFailed:"\u52A0\u8F7D\u63D2\u4EF6\u300C{0}\u300D\u5931\u8D25"},resource:{createGroup:"\u521B\u5EFA\u5206\u7EC4",updateGroup:"\u4FEE\u6539\u5206\u7EC4",copyGroup:"\u590D\u5236\u5206\u7EC4",deleteGroupConfirm:"\u662F\u5426\u8981\u5220\u9664{0}\u5206\u7EC4\u300C{1}\u300D\uFF1F",deleteGroupSuccess:"\u5220\u9664{0}\u5206\u7EC4\u300C{1}\u300D\u6210\u529F",deleteGroupFailed:"\u5220\u9664{0}\u5206\u7EC4\u300C{1}\u300D\u5931\u8D25",groupExport:"\u5206\u7EC4\u300C{0}\u300D\u76F8\u5173{1}\u5DF2\u5BFC\u51FA",moveGroup:"\u79FB\u52A8\u5206\u7EC4",moveRootGroupConfirm:"\u662F\u5426\u8981\u5C06\u5206\u7EC4\u300C{0}\u300D\u79FB\u52A8\u81F3\u6839\u8282\u70B9",moveRootSuccess:"\u79FB\u52A8{0}\u5206\u7EC4\u300C{1}\u300D\u81F3\u6839\u8282\u70B9\u6210\u529F",moveRootFailed:"\u79FB\u52A8{0}\u5206\u7EC4\u300C{1}\u300D\u81F3\u6839\u8282\u70B9\u5931\u8D25",moveGroupSuccess:"\u79FB\u52A8{0}\u5206\u7EC4\u300C{1}\u300D\u6210\u529F",moveGroupFailed:"\u79FB\u52A8{0}\u5206\u7EC4\u300C{1}\u300D\u5931\u8D25",moveFileSuccess:"\u79FB\u52A8\u8D44\u6E90\u300C{0}\u300D\u6210\u529F",moveResourceFailed:"\u79FB\u52A8\u8D44\u6E90\u300C{0}\u300D\u5931\u8D25",saveGroupSuccess:"\u4FDD\u5B58{0}\u5206\u7EC4\u300C{1}\u300D\u6210\u529F",saveGroupFailed:"\u4FDD\u5B58{0}\u5206\u7EC4\u300C{1}\u300D\u5931\u8D25",copyPathSuccess:"{0}\u8DEF\u5F84\u300C{1}\u300D\u590D\u5236\u6210\u529F",copyPathFailed:"{0}\u8DEF\u5F84\u300C{1}\u300D\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u590D\u5236",copyRelativePathSuccess:"{0}\u76F8\u5BF9\u8DEF\u5F84\u300C{1}\u300D\u590D\u5236\u6210\u529F",copyRelativePathFailed:"{0}\u76F8\u5BF9\u8DEF\u5F84\u300C{1}\u300D\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u590D\u5236",contextmenu:{copy:"\u590D\u5236{0}",copyWithPath:"\u590D\u5236\u8DEF\u5F84",copyRelativePath:"\u590D\u5236\u76F8\u5BF9\u8DEF\u5F84",lock:"\u9501\u5B9A",unlock:"\u89E3\u9501",delete:"\u5220\u9664",newFile:"\u65B0\u5EFA{0}",deleteGroup:"\u5220\u9664\u5206\u7EC4",exportGroup:"\u5BFC\u51FA\u5206\u7EC4",moveToRoot:"\u79FB\u52A8\u81F3\u6839\u8282\u70B9"},header:{expand:"\u5168\u90E8\u5C55\u5F00",collapse:"\u5168\u90E8\u6298\u53E0",asc:"\u6309\u5B57\u6BCD\u5347\u5E8F",desc:"\u6309\u5B57\u6BCD\u964D\u5E8F",position:"\u5B9A\u4F4D\u5F53\u524D\u6587\u4EF6"},form:{groupName:"\u5206\u7EC4\u540D\u79F0",groupPath:"\u5206\u7EC4\u8DEF\u5F84",placeholder:{name:"\u8BF7\u8F93\u5165{0}\u5206\u7EC4\u540D\u79F0",path:"\u8BF7\u8F93\u5165{0}\u5206\u7EC4\u8DEF\u5F84"}}},editor:{tab:{close:"\u5173\u95ED",closeOther:"\u5173\u95ED\u5176\u5B83",closeLeft:"\u5173\u95ED\u5DE6\u4FA7",closeRight:"\u5173\u95ED\u53F3\u4FA7",closeAll:"\u5168\u90E8\u5173\u95ED"},tooltip:{complection:"\u4EE3\u7801\u63D0\u793A",resume:"\u6062\u590D\u65AD\u70B9",stepInto:"\u6B65\u8FDB",format:"\u4EE3\u7801\u683C\u5F0F\u5316",recent:"\u6700\u8FD1\u6253\u5F00"},triggerSuggest:"\u89E6\u53D1\u4EE3\u7801\u63D0\u793A"},api:{title:"\u63A5\u53E3\u4FE1\u606F",name:"\u63A5\u53E3",form:{method:"\u8BF7\u6C42\u65B9\u6CD5",name:"\u63A5\u53E3\u540D\u79F0",path:"\u63A5\u53E3\u8DEF\u5F84",placeholder:{name:"\u8BF7\u8F93\u5165\u63A5\u53E3\u540D\u79F0",path:"\u8BF7\u8F93\u5165\u63A5\u53E3\u8DEF\u5F84"}},navbars:{parameter:"\u8BF7\u6C42\u53C2\u6570",header:"\u8BF7\u6C42Header",path:"\u8DEF\u5F84\u53D8\u91CF",body:"\u8BF7\u6C42Body",option:"\u63A5\u53E3\u9009\u9879",description:"\u63A5\u53E3\u63CF\u8FF0",groupOption:"\u5206\u7EC4\u9009\u9879"},validateType:"\u9A8C\u8BC1\u65B9\u5F0F",expression:"\u8868\u8FBE\u5F0F\u6216\u6B63\u5219\u8868\u8FBE\u5F0F",validate:"\u9A8C\u8BC1\u8BF4\u660E",field:"\u5B57\u6BB5",test:{requestBodyError:"RequestBody \u53C2\u6570\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\uFF01",missPath:"\u8BF7\u586B\u5199\u8DEF\u5F84\u53D8\u91CF\u540E\u5728\u6D4B\u8BD5\uFF01",requestError:"\u8BF7\u6C42\u300C{0}\u300D\u51FA\u9519",success:"\u300C{0}\u300D\u6D4B\u8BD5\u5B8C\u6BD5\uFF0C\u72B6\u6001\uFF1A{1} \u5927\u5C0F\uFF1A{2} \u8017\u65F6\uFF1A{3} ms",begin:"\u5F00\u59CB\u6D4B\u8BD5\u300C{0}\u300D"},structure:{content:"\u5F53\u524D {0} \u7ED3\u6784\u53D1\u751F\u53D8\u5316\uFF0C\u662F\u5426\u66F4\u65B0\uFF1F",ok:"\u66F4\u65B0"}},datasource:{title:"DataSource",name:"\u6570\u636E\u6E90",copySuccess:"\u590D\u5236{0}\u6210\u529F",copyFailed:"\u590D\u5236{0}\u5931\u8D25",test:"\u6D4B\u8BD5\u8FDE\u63A5",connected:"\u8FDE\u63A5\u6210\u529F",connectFailed:`\u8FDE\u63A5\u5931\u8D25\uFF0C\u9519\u8BEF\u539F\u56E0\uFF1A\r +{0}`,primary:"\u4E3B\u6570\u636E\u6E90",form:{placeholder:{name:"\u6570\u636E\u6E90\u540D\u79F0\uFF0C\u4EC5\u505A\u663E\u793A\u4F7F\u7528",key:"\u6570\u636E\u6E90Key\uFF0C\u540E\u7EED\u4EE3\u7801\u4E2D\u4F7F\u7528",url:"\u8BF7\u8F93\u5165jdbcURL\uFF0C\u5982\uFF1Ajdbc:mysql://localhost/dbname",username:"\u8BF7\u8F93\u5165\u6570\u636E\u5E93\u7528\u6237\u540D",password:"\u8BF7\u8F93\u5165\u6570\u636E\u5E93\u5BC6\u7801",driver:"\u9A71\u52A8\u7C7B\uFF0C\u53EF\u9009\uFF0C\u5185\u90E8\u81EA\u52A8\u8BC6\u522B\uFF0C\u4E5F\u53EF\u4EE5\u624B\u52A8\u8F93\u5165\u6307\u5B9A",type:"\u8FDE\u63A5\u6C60\u7C7B\u578B\uFF0C\u53EF\u9009\uFF0C\u4E5F\u53EF\u4EE5\u624B\u52A8\u8F93\u5165\u6307\u5B9A",maxRows:"\u6700\u591A\u8FD4\u56DE\u6761\u6570\uFF0C-1\u4E3A\u4E0D\u9650\u5236"},driver:"\u9A71\u52A8\u7C7B",type:"\u7C7B\u578B",other:"\u5176\u5B83\u914D\u7F6E"}},task:{title:"\u5B9A\u65F6\u4EFB\u52A1\u4FE1\u606F",name:"\u5B9A\u65F6\u4EFB\u52A1",form:{name:"\u4EFB\u52A1\u540D\u79F0",path:"\u4EFB\u52A1\u8DEF\u5F84",placeholder:{cron:"\u8BF7\u8F93\u5165Cron\u8868\u8FBE\u5F0F",name:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0",path:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u8DEF\u5F84",description:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u63CF\u8FF0"}}},fn:{title:"\u51FD\u6570\u4FE1\u606F",name:"\u51FD\u6570",number:"\u6570\u503C",string:"\u5B57\u7B26\u4E32",collection:"\u96C6\u5408",fnName:"\u51FD\u6570\u540D\u79F0",returnValue:"\u8FD4\u56DE\u503C",parameter:"\u51FD\u6570\u53C2\u6570",description:"\u51FD\u6570\u63CF\u8FF0",form:{name:"\u51FD\u6570\u540D\u79F0",path:"\u51FD\u6570\u8DEF\u5F84",placeholder:{name:"\u8BF7\u8F93\u5165\u51FD\u6570\u540D\u79F0",path:"\u8BF7\u8F93\u5165\u51FD\u6570\u8DEF\u5F84"}}},toolbars:{debug:"\u8C03\u8BD5\u4FE1\u606F",log:"\u8FD0\u884C\u65E5\u5FD7",history:"\u5386\u53F2\u8BB0\u5F55",event:"\u4E8B\u4EF6",global:"\u5168\u5C40\u53C2\u6570",response:"\u6267\u884C\u7ED3\u679C",viewHistory:"\u5386\u53F2\u8BB0\u5F55\uFF1A{0}"},event:{message:"\u4E8B\u4EF6\u5185\u5BB9"},history:{name:"\u5386\u53F2\u8BB0\u5F55",operator:"\u64CD\u4F5C\u4EBA"},upload:{full:"\u5168\u91CF\u4E0A\u4F20",increment:"\u589E\u91CF\u4E0A\u4F20",success:"{0}\u6210\u529F",failed:"{0}\u5931\u8D25"},push:{full:"\u5168\u91CF\u63A8\u9001",increment:"\u589E\u91CF\u63A8\u9001",success:"{0} Success",failed:"Failed to {0}"},backup:{full:"\u5168\u91CF\u5907\u4EFD",backupSuccess:"\u5168\u91CF\u5907\u4EFD\u5B8C\u6BD5",rollback:"\u8FD8\u539F",current:"\u5F53\u524D\u7248\u672C",difference:"\u5BF9\u6BD4\u4E0D\u540C",rollbackSuccess:"\u6062\u590D{0}\u6210\u529F",rollbackFailed:"\u6062\u590D{0}\u5931\u8D25",rollbackConfirm:"\u8BE5\u64CD\u4F5C\u4F1A\u8986\u76D6\u66F4\u65B0\u5F53\u524D\u8D44\u6E90\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F"},online:{login:"\u7528\u6237\u4E0A\u7EBF",loginTips:"\u7528\u6237\u300C{0}\u300D\u5DF2\u4E0A\u7EBF\uFF0CIP\uFF1A{1}",logout:"\u7528\u6237\u4E0B\u7EBF",logoutTips:"\u7528\u6237\u300C{0}\u300D\u5DF2\u4E0B\u7EBF\uFF0CIP\uFF1A{1}",onlines:"\u5F53\u524D\u5728\u7EBF\uFF1A{0}\u4EBA"},log:{hide:"\u70B9\u51FB\u9690\u85CF\u591A\u884C\u65E5\u5FD7",show:"\u6709 {0} \u884C\u65E5\u5FD7\u88AB\u9690\u85CF\uFF0C\u70B9\u51FB\u663E\u793A",scrollEnd:"\u6EDA\u52A8\u81F3\u7ED3\u5C3E"},code:{error:"\u8BF7\u6C42\u51FA\u9519\uFF0C\u5F02\u5E38\u4EE3\u7801({0})",invalid:"\u8BF7\u6C42\u51FA\u9519\uFF0CHttpStatus({0})",httpError:"\u8BF7\u6C42\u51FA\u9519","-2":"\u5F53\u524D\u4E3A\u53EA\u8BFB\u6A21\u5F0F\uFF0C\u65E0\u6CD5\u64CD\u4F5C","-10":"\u65E0\u6743\u9650\u64CD\u4F5C\u3002",1001:"\u627E\u4E0D\u5230\u5206\u7EC4\u4FE1\u606F",1002:"\u4E0D\u652F\u6301\u8BE5\u5206\u7EC4\u7C7B\u578B",1003:"\u76EE\u6807\u7F51\u5740\u4E0D\u80FD\u4E3A\u7A7A",1004:"secretKey\u4E0D\u80FD\u4E3A\u7A7A",1005:"\u79FB\u52A8\u540E\u540D\u79F0\u4F1A\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540D\u79F0\u540E\u5728\u8BD5\u3002",1006:"\u6E90\u5BF9\u8C61\u548C\u5206\u7EC4\u4E0D\u80FD\u4E00\u81F4",1007:"\u627E\u4E0D\u5230\u5BF9\u5E94\u6587\u4EF6\u6216\u5206\u7EC4",1008:"\u5F53\u524D\u8D44\u6E90\u5DF2\u88AB\u9501\u5B9A\uFF0C\u8BF7\u89E3\u9501\u540E\u5728\u64CD\u4F5C\u3002",1009:"\u8BE5\u8DEF\u5F84\u5DF2\u88AB\u4F7F\u7528,\u8BF7\u6362\u4E00\u4E2A\u8DEF\u5F84\u5728\u8BD5",1010:"\u8D44\u6E90\u4E2D[{0}]\u6709\u51B2\u7A81\uFF0C\u8BF7\u68C0\u67E5",1011:"\u79FB\u52A8\u540E\u8DEF\u5F84\u4F1A\u51B2\u7A81,\u8BF7\u6362\u4E00\u4E2A\u8DEF\u5F84\u5728\u8BD5",1012:"\u8BF7\u6C42\u65B9\u6CD5\u4E0D\u80FD\u4E3A\u7A7A",1013:"\u8BF7\u6C42\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A",1014:"\u51FD\u6570\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A",1015:"\u914D\u7F6E\u7684\u6587\u4EF6\u8DEF\u5F84\u4E0D\u5B58\u5728\uFF0C\u8BF7\u68C0\u67E5",1016:"\u63A5\u53E3[{0}({1})]\u4E0E\u5E94\u7528\u51B2\u7A81\uFF0C\u65E0\u6CD5\u6CE8\u518C",1017:"\u811A\u672C\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",1018:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",1019:"\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A",1020:"jdbcURL\u4E0D\u80FD\u4E3A\u7A7A",1021:"key\u4E0D\u80FD\u4E3A\u7A7A",1022:"\u6570\u636E\u6E90key\u5DF2\u88AB\u4F7F\u7528\uFF0C\u8BF7\u66F4\u6362\u540E\u5728\u8BD5",1023:"\u8BF7\u9009\u62E9\u5206\u7EC4",1024:"cron\u8868\u8FBE\u5F0F\u4E0D\u80FD\u4E3A\u7A7A",1025:"\u540D\u79F0\u4E0D\u80FD\u5305\u542B\u7279\u6B8A\u5B57\u7B26\uFF0C\u53EA\u5141\u8BB8\u4E2D\u6587\u3001\u6570\u5B57\u3001\u5B57\u6BCD\u4EE5\u53CA+_-.()\u7684\u7EC4\u5408\u4E14\u4E0D\u80FD.\u5F00\u5934",1026:"\u6570\u636E\u6E90Key\u4E0D\u80FD\u5305\u542B\u7279\u6B8A\u5B57\u7B26\uFF0C\u53EA\u5141\u8BB8\u4E2D\u6587\u3001\u6570\u5B57\u3001\u5B57\u6BCD\u4EE5\u53CA_\u7EC4\u5408",1027:"\u4FDD\u5B58\u5931\u8D25,\u540C\u4E00\u7EC4\u4E0B\u5206\u7EC4\u540D\u79F0\u4E0D\u80FD\u91CD\u590D\u4E14\u4E0D\u80FD\u5305\u542B\u7279\u6B8A\u5B57\u7B26\u3002",1028:"\u53C2\u6570\u9A8C\u8BC1\u5931\u8D25",1029:"header\u9A8C\u8BC1\u5931\u8D25",1030:"\u8DEF\u5F84\u53D8\u91CF\u9A8C\u8BC1\u5931\u8D25",1031:"body\u9A8C\u8BC1\u5931\u8D25",1032:"\u8BF7\u4E0A\u4F20\u6587\u4EF6",1033:"\u7B7E\u540D\u9A8C\u8BC1\u5931\u8D25,\u8BF7\u68C0\u67E5\u79D8\u94A5\u662F\u5426\u6B63\u786E",1034:"\u672A\u542F\u7528\u5907\u4EFD\uFF0C\u65E0\u6CD5\u64CD\u4F5C",1035:"\u627E\u4E0D\u5230\u63A5\u53E3"}},fi=Object.freeze(Object.defineProperty({__proto__:null,default:Pt},Symbol.toStringTag,{value:"Module"}));const gi=De.get("locale");let qt=Pt;gi==="en"&&(qt=Ia);function c(e,...t){try{const a=e.split(".").reduce((n,i)=>n[i],qt);return a&&t.length>0?a.replace(/\{(\d+)\}/g,(n,i)=>t[i]):a||e}catch{return e}}function mi(e,t){let a=Pt;e==="en"&&(a=Ia);const n=(i,s)=>{Object.entries(s).forEach(([o,r])=>{typeof r=="string"?i[o]=r:(i[o]||(i[o]={}),n(i[o],r))})};n(a,t)}function vi(e,t){if(Pt===qt)return t;const a=Pt.code[`${e}`],n=qt.code[`${e}`];if(a&&n){const i=a.replace(/([()\[\]\.])/g,"\\$1").replace(/{\d+}/g,"(.*?)");if(i){const s=[],o=new RegExp(i,"g");let r;for(;(r=o.exec(t))!=null;)s.push(r);return c(`code.${e}`,s.splice(0,1))}}return t}let dn=pi.version,bi="V"+dn.replace(/\./g,"_");const D={BASE_URL:"",WEBSOCKET_SERVER:"",SERVER_URL:"",AUTO_SAVE:!0,user:null,DECORATION_TIMEOUT:1e4,CHECK_UPDATE:!0,BLOCK_CLOSE:!0,MAGIC_API_VERSION_TEXT:dn,MAGIC_API_VERSION:bi,API_DEFAULT_METHOD:"GET",CLIENT_ID:"none",HEADER_REQUEST_CLIENT_ID:"Magic-Request-Client-Id",HEADER_REQUEST_SCRIPT_ID:"Magic-Request-Script-Id",HEADER_REQUEST_BREAKPOINTS:"Magic-Request-Breakpoints",HEADER_RESPONSE_MAGIC_CONTENT_TYPE:"ma-content-type",HEADER_APPLICATION_STREAM:"application/octet-stream",HEADER_CONTENT_DISPOSITION:"ma-content-disposition",HEADER_MAGIC_TOKEN:"magic-token",HEADER_MAGIC_TOKEN_VALUE:"unauthorization",IGNORE_VERSION:"ignore-version",RECENT_OPENED_TAB:"recent_opened_tab",RECENT_OPENED:"recent_opened",RESPONSE_CODE_DEBUG:1e3,RESPONSE_CODE_SCRIPT_ERROR:-1e3,RESPONSE_NO_PERMISSION:-10,DEFAULT_EXPAND:!0,LOGINED:!1,LOG_MAX_ROWS:1/0,LOCKED:"1",UNLOCK:"0",STORE:{theme:"theme",token:"token"},PLUGINS:[],GLOBAL:{parameters:[],headers:[]},THEME:"default",JDBC_DRIVERS:["com.mysql.jdbc.Driver","com.mysql.cj.jdbc.Driver","oracle.jdbc.driver.OracleDriver","org.postgresql.Driver","com.microsoft.sqlserver.jdbc.SQLServerDriver","com.ibm.db2.jcc.DB2Driver"],DATASOURCE_TYPES:["com.zaxxer.hikari.HikariDataSource","com.alibaba.druid.pool.DruidDataSource","org.apache.tomcat.jdbc.pool.DataSource","org.apache.commons.dbcp2.BasicDataSource"],OPTIONS:[],EDITOR_FONT_FAMILY:'JetBrainsMono, Consolas, "Courier New",monospace, \u5FAE\u8F6F\u96C5\u9ED1',EDITOR_FONT_SIZE:14,FONT_LIGATURES:!0,VALIDATE_TYPES:[{value:"pass",text:c("message.noValidate")},{value:"expression",text:c("message.validateExpression")},{value:"pattern",text:c("message.validatePattern")}],DEFAULT_VALIDATE_TYPE:"pass",REQUEST_PARAMETER_TYPES:[{value:"String",text:"String"},{value:"Boolean",text:"Boolean"},{value:"Integer",text:"Integer"},{value:"Date",text:"Date"},{value:"Double",text:"Double"},{value:"Long",text:"Long"},{value:"Short",text:"Short"},{value:"Float",text:"Float"},{value:"Byte",text:"Byte"},{value:"MultipartFile",text:"MultipartFile"},{value:"MultipartFiles",text:"MultipartFiles"}],GLOBAL_PARAMETER_TYPES:[{value:"String",text:"String"},{value:"Boolean",text:"Boolean"},{value:"Integer",text:"Integer"},{value:"Date",text:"Date"},{value:"Double",text:"Double"},{value:"Long",text:"Long"},{value:"Short",text:"Short"},{value:"Float",text:"Float"},{value:"Byte",text:"Byte"}],DEFAULT_REQUEST_PARAMETER_TYPE:"String",REQUEST_SIMPLE_TYPES:[{value:"String",text:"String"},{value:"Boolean",text:"Boolean"},{value:"Integer",text:"Integer"},{value:"Date",text:"Date"},{value:"Double",text:"Double"},{value:"Long",text:"Long"},{value:"Short",text:"Short"},{value:"Float",text:"Float"},{value:"Byte",text:"Byte"}],DEFAULT_REQUEST_SIMPLE_TYPE:"String",REQUEST_METHODS:[{value:"GET",text:"GET"},{value:"POST",text:"POST"},{value:"PUT",text:"PUT"},{value:"DELETE",text:"DELETE"},{value:"HEAD",text:"HEAD"},{value:"PATCH",text:"PATCH"}],DEFAULT_REQUEST_METHOD:"GET",FUNCTION_RETURN_TYPES:[{value:"java.lang.Number",text:c("fn.number")},{value:"java.lang.String",text:c("fn.string")},{value:"java.util.Collection",text:c("fn.collection")},{value:"java.util.Map",text:"Map"},{value:"java.lang.Object",text:"Object"}],BODY_DATA_TYPES:[{value:"String",text:"String"},{value:"Integer",text:"Integer"},{value:"Double",text:"Double"},{value:"Long",text:"Long"},{value:"Short",text:"Short"},{value:"Float",text:"Float"},{value:"Byte",text:"Byte"},{value:"Boolean",text:"Boolean"},{value:"Date",text:"Date"},{value:"Object",text:"Object"},{value:"Array",text:"Array"},{value:"Any",text:"Any"}],DEFAULT_FUNCTION_RETURN_TYPE:"java.lang.Object",config:{}},Ei={style:{"white-space":"pre-wrap"}},pn={__name:"magic-alert",props:{title:{type:String,default:c("message.tips")},ok:{type:String,default:c("message.ok")},message:{type:String,required:!0},onClose:{type:Function,default:()=>{}}},setup(e){const t=U(!0);return(a,n)=>{const i=y("magic-button"),s=y("magic-button-group"),o=y("magic-dialog");return v(),V(o,{value:t.value,"onUpdate:value":n[1]||(n[1]=r=>t.value=r),title:e.title,ref:"dialog",onClose:n[2]||(n[2]=r=>e.onClose())},{default:w(()=>[R("pre",Ei,F(e.message),1),_(s,{align:"center",style:{padding:"5px 0"}},{default:w(()=>[_(i,{value:e.ok,type:"active",onOnClick:n[0]||(n[0]=r=>a.$refs.dialog.close())},null,8,["value"])]),_:1})]),_:1},8,["value","title"])}}};var yi=Object.freeze(Object.defineProperty({__proto__:null,default:pn},Symbol.toStringTag,{value:"Module"}));const Ti=["innerHTML"],_n={__name:"magic-confirm",props:{title:{type:String,default:c("message.tips")},ok:{type:String,default:c("message.ok")},cancel:{type:String,default:c("message.cancel")},message:{type:String,required:!0},success:{type:Function,default:()=>{}},onClose:{type:Function,default:()=>{}}},setup(e){const t=U(!0);return(a,n)=>{const i=y("magic-button"),s=y("magic-button-group"),o=y("magic-dialog");return v(),V(o,{value:t.value,"onUpdate:value":n[2]||(n[2]=r=>t.value=r),title:e.title,ref:"dialog",onClose:n[3]||(n[3]=r=>e.onClose())},{default:w(()=>[R("pre",{innerHTML:e.message,style:{"white-space":"pre-wrap"}},null,8,Ti),_(s,{align:"right",style:{padding:"5px 0"}},{default:w(()=>[_(i,{value:e.ok,type:"active",onOnClick:n[0]||(n[0]=()=>{e.success(),a.$refs.dialog.close()})},null,8,["value"]),_(i,{value:e.cancel,onOnClick:n[1]||(n[1]=r=>a.$refs.dialog.close())},null,8,["value"])]),_:1})]),_:1},8,["value","title"])}}};var Si=Object.freeze(Object.defineProperty({__proto__:null,default:_n},Symbol.toStringTag,{value:"Module"}));let hn=null;const Ga=(e,t)=>{const a=document.createElement("div");document.querySelector(".magic-editor .magic-mounts").appendChild(a);const n=Ra(e,{...t,onClose:()=>a.remove()});hn(n),n.mount(a)},me={alert:(e,t,a)=>Ga(pn,{message:e,title:t,ok:a}),confirm:(e,t,a)=>Ga(_n,{title:e,message:t,success:a})},fn=(e,t)=>{hn=t,Object.keys(me).forEach(a=>e.config.globalProperties[`$${a}`]=me[a])};var xi=Object.freeze(Object.defineProperty({__proto__:null,install:fn,default:me},Symbol.toStringTag,{value:"Module"}));function Re(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}Re.prototype.clone_empty=function(){var e=new Re(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e};Re.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]};Re.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1};Re.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))};Re.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)};Re.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count};Re.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,e.__items[0]===" "&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1};Re.prototype.is_empty=function(){return this.__items.length===0};Re.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]};Re.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf(` +`);t!==-1?this.__character_count=e.length-t:this.__character_count+=e.length};Re.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e};Re.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)};Re.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)};Re.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1};Re.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e};function Ft(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}Ft.prototype.get_indent_size=function(e,t){var a=this.__base_string_length;return t=t||0,e<0&&(a=0),a+=e*this.__indent_size,a+=t,a};Ft.prototype.get_indent_string=function(e,t){var a=this.__base_string;return t=t||0,e<0&&(e=0,a=""),t+=e*this.__indent_size,this.__ensure_cache(t),a+=this.__cache[t],a};Ft.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()};Ft.prototype.__add_column=function(){var e=this.__cache.length,t=0,a="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,a=new Array(t+1).join(this.__indent_string)),e&&(a+=new Array(e+1).join(" ")),this.__cache.push(a)};function Ae(e,t){this.__indent_cache=new Ft(e,t),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new Re(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}Ae.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)};Ae.prototype.get_line_number=function(){return this.__lines.length};Ae.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)};Ae.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)};Ae.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()};Ae.prototype.add_new_line=function(e){return this.is_empty()||!e&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)};Ae.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&(t[t.length-1]===` `&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var a=this.__lines.join(` `);return e===`\r `?a=a.replace(/([^\r])\n/g,`$1${e}`):e!==` -`&&(a=a.replace(/[\n]/g,e)),a};Ae.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()};Ae.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)};Ae.prototype.add_raw_token=function(e){for(var t=0;t1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null};Ae.prototype.just_added_newline=function(){return this.current_line.is_empty()};Ae.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()};Ae.prototype.ensure_empty_line_above=function(e,t){for(var a=this.__lines.length-2;a>=0;){var n=this.__lines[a];if(n.is_empty())break;if(n.item(0).indexOf(e)!==0&&n.item(-1)!==t){this.__lines.splice(a+1,0,new Re(this)),this.previous_line=this.__lines[this.__lines.length-2];break}a--}};function wa(e,t,a,n){this.type=e,this.text=t,this.comments_before=null,this.newlines=a||0,this.whitespace_before=n||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}var Ai="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",vn="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",Da="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",bn="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",Ci="(?:\\\\u[0-9a-fA-F]{4}|["+Ai+Da+"])",Ii="(?:\\\\u[0-9a-fA-F]{4}|["+vn+Da+bn+"])*";const En=new RegExp(Ci+Ii,"g"),ki=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+vn+Da+bn+"])+"),Vt=/[\n\r\u2028\u2029]/,Ft=new RegExp(`\r -|`+Vt.source),jt=new RegExp(Ft.source,"g");function tt(e,t){this.raw_options=Li(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}tt.prototype._get_array=function(e,t){var a=this.raw_options[e],n=t||[];return typeof a=="object"?a!==null&&typeof a.concat=="function"&&(n=a.concat()):typeof a=="string"&&(n=a.split(/[^a-zA-Z0-9_/-]+/)),n};tt.prototype._get_boolean=function(e,t){var a=this.raw_options[e],n=a===void 0?!!t:!!a;return n};tt.prototype._get_characters=function(e,t){var a=this.raw_options[e],n=t||"";return typeof a=="string"&&(n=a.replace(/\\r/,"\r").replace(/\\n/,` +`&&(a=a.replace(/[\n]/g,e)),a};Ae.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()};Ae.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)};Ae.prototype.add_raw_token=function(e){for(var t=0;t1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null};Ae.prototype.just_added_newline=function(){return this.current_line.is_empty()};Ae.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()};Ae.prototype.ensure_empty_line_above=function(e,t){for(var a=this.__lines.length-2;a>=0;){var n=this.__lines[a];if(n.is_empty())break;if(n.item(0).indexOf(e)!==0&&n.item(-1)!==t){this.__lines.splice(a+1,0,new Re(this)),this.previous_line=this.__lines[this.__lines.length-2];break}a--}};function ka(e,t,a,n){this.type=e,this.text=t,this.comments_before=null,this.newlines=a||0,this.whitespace_before=n||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}var Oi="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",gn="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",La="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",mn="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",Ri="(?:\\\\u[0-9a-fA-F]{4}|["+Oi+La+"])",Ai="(?:\\\\u[0-9a-fA-F]{4}|["+gn+La+mn+"])*";const vn=new RegExp(Ri+Ai,"g"),Ci=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+gn+La+mn+"])+"),Bt=/[\n\r\u2028\u2029]/,Ut=new RegExp(`\r +|`+Bt.source),Ht=new RegExp(Ut.source,"g");function tt(e,t){this.raw_options=Ii(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}tt.prototype._get_array=function(e,t){var a=this.raw_options[e],n=t||[];return typeof a=="object"?a!==null&&typeof a.concat=="function"&&(n=a.concat()):typeof a=="string"&&(n=a.split(/[^a-zA-Z0-9_/-]+/)),n};tt.prototype._get_boolean=function(e,t){var a=this.raw_options[e],n=a===void 0?!!t:!!a;return n};tt.prototype._get_characters=function(e,t){var a=this.raw_options[e],n=t||"";return typeof a=="string"&&(n=a.replace(/\\r/,"\r").replace(/\\n/,` `).replace(/\\t/," ")),n};tt.prototype._get_number=function(e,t){var a=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var n=parseInt(a,10);return isNaN(n)&&(n=t),n};tt.prototype._get_selection=function(e,t,a){var n=this._get_selection_list(e,t,a);if(n.length!==1)throw new Error("Invalid Option Value: The option '"+e+`' can only be one of the following values: `+t+` You passed in: '`+this.raw_options[e]+"'");return n[0]};tt.prototype._get_selection_list=function(e,t,a){if(!t||t.length===0)throw new Error("Selection list cannot be empty.");if(a=a||[t[0]],!this._is_valid_selection(a,t))throw new Error("Invalid Default Value!");var n=this._get_array(e,a);if(!this._is_valid_selection(n,t))throw new Error("Invalid Option Value: The option '"+e+`' can contain only the following values: `+t+` -You passed in: '`+this.raw_options[e]+"'");return n};tt.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(a){return t.indexOf(a)===-1})};function Li(e,t){var a={};e=Ni(e);var n;for(n in e)n!==t&&(a[n]=e[n]);if(t&&e[t])for(n in e[t])a[n]=e[t][n];return a}function Ni(e){var t={},a;for(a in e){var n=a.replace(/-/g,"_");t[n]=e[a]}return t}var wi=["before-newline","after-newline","preserve-newline"];function yn(e){tt.call(this,e,"js");var t=this.raw_options.brace_style||null;t==="expand-strict"?this.raw_options.brace_style="expand":t==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var a=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var n=0;n0&&(this.__position-=1)};Ce.prototype.hasNext=function(){return this.__position=0&&e=0&&t=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e};function Qe(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}Qe.prototype.restart=function(){this.__position=0};Qe.prototype.isEmpty=function(){return this.__tokens_length===0};Qe.prototype.hasNext=function(){return this.__position=0&&e/),erb:a.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:a.starting_with(/{%/).until_after(/%}/),django_value:a.starting_with(/{{/).until_after(/}}/),django_comment:a.starting_with(/{#/).until_after(/#}/),smarty:a.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:a.starting_with(/{\*/).until_after(/\*}/),smarty_literal:a.starting_with(/{literal}/).until_after(/{\/literal}/)}}Ge.prototype=new we;Ge.prototype._create=function(){return new Ge(this._input,this)};Ge.prototype._update=function(){this.__set_templated_pattern()};Ge.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t};Ge.prototype.read_options=function(e){var t=this._create();for(var a in pa)t._disabled[a]=e.templating.indexOf(a)===-1;return t._update(),t};Ge.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t};Ge.prototype.read=function(){var e="";this._match_pattern?e=this._input.read(this._starting_pattern):e=this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e};Ge.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")};Ge.prototype._read_template=function(){var e="",t=this._input.peek();if(t==="<"){var a=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&a==="?"&&(e=e||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&a==="%"&&(e=e||this.__patterns.erb.read())}else t==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(e=e||this.__patterns.handlebars_comment.read(),e=e||this.__patterns.handlebars_unescaped.read(),e=e||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=e||this.__patterns.django_comment.read(),e=e||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=e||this.__patterns.smarty_comment.read(),e=e||this.__patterns.smarty_literal.read(),e=e||this.__patterns.smarty.read()));return e};function ra(e,t){return t.indexOf(e)!==-1}const O={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:ut.START,RAW:ut.RAW,EOF:ut.EOF};var Ka=new Ma(/\/\*/,/\*\//),Di=/0[xX][0123456789abcdefABCDEF_]*[mMdDlLfFsSbB]?|0[oO][01234567_]*[mMdDlLfFsSbB]?|0[bB][01_]*[mMdDlLfFsSbB]?|\d[\d_]*[mMdDlLfFsSbB]|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,Mi=/[0-9]/,Pi=/[^\d.]/;const It=">>> === !== << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" ");var dt=">>>= ... >>= <<= === >>> !== **= => -> ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";dt=dt.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&");dt="\\?\\.(?!\\d) "+dt;dt=dt.replace(/ /g,"|");var Ui=new RegExp(dt);const yt="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(",");var $i=yt.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),Fi=new RegExp("^(?:"+$i.join("|")+")$"),qt;const Ie=function(e,t){ze.call(this,e,t),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var a=new we(this._input),n=new Ge(this._input).read_options(this._options);this.__patterns={template:n,identifier:n.starting_with(En).matching(ki),number:a.matching(Di),punct:a.matching(Ui),comment:a.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:a.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:a.matching(//),include:a.starting_with(/#include/).until_after(Ft),shebang:a.starting_with(/#!/).until_after(Ft),xml:a.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\]|)(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:n.until(/['\\\n\r\u2028\u2029]/),double_quote:n.until(/["\\\n\r\u2028\u2029]/),template_text:n.until(/[`\\$]/),template_expression:n.until(/[`}\\]/)}};Ie.prototype=new ze;Ie.prototype._is_comment=function(e){return e.type===O.COMMENT||e.type===O.BLOCK_COMMENT||e.type===O.UNKNOWN};Ie.prototype._is_opening=function(e){return e.type===O.START_BLOCK||e.type===O.START_EXPR};Ie.prototype._is_closing=function(e,t){return(e.type===O.END_BLOCK||e.type===O.END_EXPR)&&t&&(e.text==="]"&&t.text==="["||e.text===")"&&t.text==="("||e.text==="}"&&t.text==="{")};Ie.prototype._reset=function(){qt=!1};Ie.prototype._get_next_token=function(e){var t=null;this._readWhitespace();var a=this._input.peek();return a===null?this._create_token(O.EOF,""):(t=t||this._read_non_javascript(a),t=t||this._read_multi_string(a),t=t||this._read_string(a),t=t||this._read_word(e),t=t||this._read_singles(a),t=t||this._read_comment(a),t=t||this._read_regexp(a,e),t=t||this._read_xml(a,e),t=t||this._read_punctuation(),t=t||this._create_token(O.UNKNOWN,this._input.next()),t)};Ie.prototype._read_word=function(e){var t;if(t=this.__patterns.identifier.read(),t!=="")return t=t.replace(jt,` -`),!(e.type===O.DOT||e.type===O.RESERVED&&(e.text==="set"||e.text==="get"))&&Fi.test(t)?t==="in"||t==="of"?this._create_token(O.OPERATOR,t):this._create_token(O.RESERVED,t):this._create_token(O.WORD,t);if(t=this.__patterns.number.read(),t!=="")return this._create_token(O.WORD,t)};Ie.prototype._read_singles=function(e){var t=null;return e==="("||e==="["?t=this._create_token(O.START_EXPR,e):e===")"||e==="]"?t=this._create_token(O.END_EXPR,e):e==="{"?t=this._create_token(O.START_BLOCK,e):e==="}"?t=this._create_token(O.END_BLOCK,e):e===";"?t=this._create_token(O.SEMICOLON,e):e==="."&&Pi.test(this._input.peek(1))?t=this._create_token(O.DOT,e):e===","&&(t=this._create_token(O.COMMA,e)),t&&this._input.next(),t};Ie.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(e!=="")return e==="="?this._create_token(O.EQUALS,e):e==="?."?this._create_token(O.DOT,e):this._create_token(O.OPERATOR,e)};Ie.prototype._read_non_javascript=function(e){var t="";if(e==="#"){if(this._is_first_token()&&(t=this.__patterns.shebang.read(),t))return this._create_token(O.UNKNOWN,t.trim()+` +You passed in: '`+this.raw_options[e]+"'");return n};tt.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(a){return t.indexOf(a)===-1})};function Ii(e,t){var a={};e=ki(e);var n;for(n in e)n!==t&&(a[n]=e[n]);if(t&&e[t])for(n in e[t])a[n]=e[t][n];return a}function ki(e){var t={},a;for(a in e){var n=a.replace(/-/g,"_");t[n]=e[a]}return t}var Li=["before-newline","after-newline","preserve-newline"];function bn(e){tt.call(this,e,"js");var t=this.raw_options.brace_style||null;t==="expand-strict"?this.raw_options.brace_style="expand":t==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var a=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var n=0;n0&&(this.__position-=1)};Ce.prototype.hasNext=function(){return this.__position=0&&e=0&&t=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e};function Qe(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}Qe.prototype.restart=function(){this.__position=0};Qe.prototype.isEmpty=function(){return this.__tokens_length===0};Qe.prototype.hasNext=function(){return this.__position=0&&e/),erb:a.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:a.starting_with(/{%/).until_after(/%}/),django_value:a.starting_with(/{{/).until_after(/}}/),django_comment:a.starting_with(/{#/).until_after(/#}/),smarty:a.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:a.starting_with(/{\*/).until_after(/\*}/),smarty_literal:a.starting_with(/{literal}/).until_after(/{\/literal}/)}}Ge.prototype=new we;Ge.prototype._create=function(){return new Ge(this._input,this)};Ge.prototype._update=function(){this.__set_templated_pattern()};Ge.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t};Ge.prototype.read_options=function(e){var t=this._create();for(var a in ua)t._disabled[a]=e.templating.indexOf(a)===-1;return t._update(),t};Ge.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t};Ge.prototype.read=function(){var e="";this._match_pattern?e=this._input.read(this._starting_pattern):e=this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e};Ge.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")};Ge.prototype._read_template=function(){var e="",t=this._input.peek();if(t==="<"){var a=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&a==="?"&&(e=e||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&a==="%"&&(e=e||this.__patterns.erb.read())}else t==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(e=e||this.__patterns.handlebars_comment.read(),e=e||this.__patterns.handlebars_unescaped.read(),e=e||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=e||this.__patterns.django_comment.read(),e=e||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=e||this.__patterns.smarty_comment.read(),e=e||this.__patterns.smarty_literal.read(),e=e||this.__patterns.smarty.read()));return e};function sa(e,t){return t.indexOf(e)!==-1}const O={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:ut.START,RAW:ut.RAW,EOF:ut.EOF};var za=new Na(/\/\*/,/\*\//),Ni=/0[xX][0123456789abcdefABCDEF_]*[mMdDlLfFsSbB]?|0[oO][01234567_]*[mMdDlLfFsSbB]?|0[bB][01_]*[mMdDlLfFsSbB]?|\d[\d_]*[mMdDlLfFsSbB]|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,wi=/[0-9]/,Di=/[^\d.]/;const At=">>> === !== << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" ");var dt=">>>= ... >>= <<= === >>> !== **= => -> ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";dt=dt.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&");dt="\\?\\.(?!\\d) "+dt;dt=dt.replace(/ /g,"|");var Mi=new RegExp(dt);const vt="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(",");var Pi=vt.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),Ui=new RegExp("^(?:"+Pi.join("|")+")$"),Vt;const Ie=function(e,t){ze.call(this,e,t),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var a=new we(this._input),n=new Ge(this._input).read_options(this._options);this.__patterns={template:n,identifier:n.starting_with(vn).matching(Ci),number:a.matching(Ni),punct:a.matching(Mi),comment:a.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:a.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:a.matching(//),include:a.starting_with(/#include/).until_after(Ut),shebang:a.starting_with(/#!/).until_after(Ut),xml:a.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\]|)(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:n.until(/['\\\n\r\u2028\u2029]/),double_quote:n.until(/["\\\n\r\u2028\u2029]/),template_text:n.until(/[`\\$]/),template_expression:n.until(/[`}\\]/)}};Ie.prototype=new ze;Ie.prototype._is_comment=function(e){return e.type===O.COMMENT||e.type===O.BLOCK_COMMENT||e.type===O.UNKNOWN};Ie.prototype._is_opening=function(e){return e.type===O.START_BLOCK||e.type===O.START_EXPR};Ie.prototype._is_closing=function(e,t){return(e.type===O.END_BLOCK||e.type===O.END_EXPR)&&t&&(e.text==="]"&&t.text==="["||e.text===")"&&t.text==="("||e.text==="}"&&t.text==="{")};Ie.prototype._reset=function(){Vt=!1};Ie.prototype._get_next_token=function(e){var t=null;this._readWhitespace();var a=this._input.peek();return a===null?this._create_token(O.EOF,""):(t=t||this._read_non_javascript(a),t=t||this._read_multi_string(a),t=t||this._read_string(a),t=t||this._read_word(e),t=t||this._read_singles(a),t=t||this._read_comment(a),t=t||this._read_regexp(a,e),t=t||this._read_xml(a,e),t=t||this._read_punctuation(),t=t||this._create_token(O.UNKNOWN,this._input.next()),t)};Ie.prototype._read_word=function(e){var t;if(t=this.__patterns.identifier.read(),t!=="")return t=t.replace(Ht,` +`),!(e.type===O.DOT||e.type===O.RESERVED&&(e.text==="set"||e.text==="get"))&&Ui.test(t)?t==="in"||t==="of"?this._create_token(O.OPERATOR,t):this._create_token(O.RESERVED,t):this._create_token(O.WORD,t);if(t=this.__patterns.number.read(),t!=="")return this._create_token(O.WORD,t)};Ie.prototype._read_singles=function(e){var t=null;return e==="("||e==="["?t=this._create_token(O.START_EXPR,e):e===")"||e==="]"?t=this._create_token(O.END_EXPR,e):e==="{"?t=this._create_token(O.START_BLOCK,e):e==="}"?t=this._create_token(O.END_BLOCK,e):e===";"?t=this._create_token(O.SEMICOLON,e):e==="."&&Di.test(this._input.peek(1))?t=this._create_token(O.DOT,e):e===","&&(t=this._create_token(O.COMMA,e)),t&&this._input.next(),t};Ie.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(e!=="")return e==="="?this._create_token(O.EQUALS,e):e==="?."?this._create_token(O.DOT,e):this._create_token(O.OPERATOR,e)};Ie.prototype._read_non_javascript=function(e){var t="";if(e==="#"){if(this._is_first_token()&&(t=this.__patterns.shebang.read(),t))return this._create_token(O.UNKNOWN,t.trim()+` `);if(t=this.__patterns.include.read(),t)return this._create_token(O.UNKNOWN,t.trim()+` -`);e=this._input.next();var a="#";if(this._input.hasNext()&&this._input.testChar(Mi)){do e=this._input.next(),a+=e;while(this._input.hasNext()&&e!=="#"&&e!=="=");return e==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(a+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(a+="{}",this._input.next(),this._input.next())),this._create_token(O.WORD,a)}this._input.back()}else if(e==="<"&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read(),t){for(;this._input.hasNext()&&!this._input.testChar(Vt);)t+=this._input.next();return qt=!0,this._create_token(O.COMMENT,t)}}else if(qt&&e==="-"&&(t=this.__patterns.html_comment_end.read(),t))return qt=!1,this._create_token(O.COMMENT,t);return null};Ie.prototype._read_comment=function(e){var t=null;if(e==="/"){var a="";if(this._input.peek(1)==="*"){a=this.__patterns.block_comment.read();var n=Ka.get_directives(a);n&&n.ignore==="start"&&(a+=Ka.readIgnored(this._input)),a=a.replace(jt,` -`),t=this._create_token(O.BLOCK_COMMENT,a),t.directives=n}else this._input.peek(1)==="/"&&(a=this.__patterns.comment.read(),t=this._create_token(O.COMMENT,a))}return t};Ie.prototype._read_multi_string=function(){if(this._input.match(/"""/g)){let e=this._input.readUntilAfter(/"""/g);return this._create_token(O.STRING,'"""'+e)}return null};Ie.prototype._read_string=function(e){if(e==="`"||e==="'"||e==='"'){var t=this._input.next();return this.has_char_escapes=!1,e==="`"?t+=this._read_string_recursive("`",!0,"${"):t+=this._read_string_recursive(e),this.has_char_escapes&&this._options.unescape_strings&&(t=Bi(t)),this._input.peek()===e&&(t+=this._input.next()),t=t.replace(jt,` -`),this._create_token(O.STRING,t)}return null};Ie.prototype._allow_regexp_or_xml=function(e){return e.type===O.RESERVED&&ra(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===O.END_EXPR&&e.text===")"&&e.opened.previous.type===O.RESERVED&&ra(e.opened.previous.text,["if","while","for"])||ra(e.type,[O.COMMENT,O.START_EXPR,O.START_BLOCK,O.START,O.END_BLOCK,O.OPERATOR,O.EQUALS,O.EOF,O.SEMICOLON,O.COMMA])};Ie.prototype._read_regexp=function(e,t){if(e==="/"&&this._allow_regexp_or_xml(t)){for(var a=this._input.next(),n=!1,i=!1;this._input.hasNext()&&(n||i||this._input.peek()!==e)&&!this._input.testChar(Vt);)a+=this._input.peek(),n?n=!1:(n=this._input.peek()==="\\",this._input.peek()==="["?i=!0:this._input.peek()==="]"&&(i=!1)),this._input.next();return this._input.peek()===e&&(a+=this._input.next(),a+=this._input.read(En)),this._create_token(O.STRING,a)}return null};Ie.prototype._read_xml=function(e,t){if(this._options.e4x&&e==="<"&&this._allow_regexp_or_xml(t)){var a="",n=this.__patterns.xml.read_match();if(n){for(var i=n[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),s=i.indexOf("{")===0,o=0;n;){var r=!!n[1],l=n[2],u=!!n[n.length-1]||l.slice(0,8)==="![CDATA[";if(!u&&(l===i||s&&l.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(r?--o:++o),a+=n[0],o<=0)break;n=this.__patterns.xml.read_match()}return n||(a+=this._input.match(/[\s\S]*/g)[0]),a=a.replace(jt,` -`),this._create_token(O.STRING,a)}}return null};function Bi(e){for(var t="",a=0,n=new Ce(e),i=null;n.hasNext();)if(i=n.match(/([\s]|[^\\]|\\\\)+/g),i&&(t+=i[0]),n.peek()==="\\"){if(n.next(),n.peek()==="x")i=n.match(/x([0-9A-Fa-f]{2})/g);else if(n.peek()==="u")i=n.match(/u([0-9A-Fa-f]{4})/g);else{t+="\\",n.hasNext()&&(t+=n.next());continue}if(!i||(a=parseInt(i[1],16),a>126&&a<=255&&i[0].indexOf("x")===0))return e;if(a>=0&&a<32){t+="\\"+i[0];continue}else a===34||a===39||a===92?t+="\\"+String.fromCharCode(a):t+=String.fromCharCode(a)}return t}Ie.prototype._read_string_recursive=function(e,t,a){var n,i;e==="'"?i=this.__patterns.single_quote:e==='"'?i=this.__patterns.double_quote:e==="`"?i=this.__patterns.template_text:e==="}"&&(i=this.__patterns.template_expression);for(var s=i.read(),o="";this._input.hasNext();){if(o=this._input.next(),o===e||!t&&Vt.test(o)){this._input.back();break}else o==="\\"&&this._input.hasNext()?(n=this._input.peek(),n==="x"||n==="u"?this.has_char_escapes=!0:n==="\r"&&this._input.peek(1)===` -`&&this._input.next(),o+=this._input.next()):a&&(a==="${"&&o==="$"&&this._input.peek()==="{"&&(o+=this._input.next()),a===o&&(e==="`"?o+=this._read_string_recursive("}",t,"`"):o+=this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(o+=this._input.next())));o+=i.read(),s+=o}return s};function ne(e,t){return t.indexOf(e)!==-1}function Hi(e){return e.replace(/^\s+/g,"")}function Vi(e){for(var t={},a=0;a126&&a<=255&&i[0].indexOf("x")===0))return e;if(a>=0&&a<32){t+="\\"+i[0];continue}else a===34||a===39||a===92?t+="\\"+String.fromCharCode(a):t+=String.fromCharCode(a)}return t}Ie.prototype._read_string_recursive=function(e,t,a){var n,i;e==="'"?i=this.__patterns.single_quote:e==='"'?i=this.__patterns.double_quote:e==="`"?i=this.__patterns.template_text:e==="}"&&(i=this.__patterns.template_expression);for(var s=i.read(),o="";this._input.hasNext();){if(o=this._input.next(),o===e||!t&&Bt.test(o)){this._input.back();break}else o==="\\"&&this._input.hasNext()?(n=this._input.peek(),n==="x"||n==="u"?this.has_char_escapes=!0:n==="\r"&&this._input.peek(1)===` +`&&this._input.next(),o+=this._input.next()):a&&(a==="${"&&o==="$"&&this._input.peek()==="{"&&(o+=this._input.next()),a===o&&(e==="`"?o+=this._read_string_recursive("}",t,"`"):o+=this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(o+=this._input.next())));o+=i.read(),s+=o}return s};function ne(e,t){return t.indexOf(e)!==-1}function Fi(e){return e.replace(/^\s+/g,"")}function Bi(e){for(var t={},a=0;aa&&(a=e.line_indent_level));var n={mode:t,parent:e,last_token:e?e.last_token:new wa(O.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:a,alignment:0,line_indent_level:e?e.line_indent_level:a,start_line_index:this._output.get_line_number(),ternary_depth:0};return n};re.prototype._reset=function(e){var t=e.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new Ae(this._options,t),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(K.BlockStatement);var a=new Ie(e,this._options);return this._tokens=a.tokenize(),e};re.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e,t=this._reset(this._source_text),a=this._options.eol;this._options.eol==="auto"&&(a=` -`,t&&Ft.test(t||"")&&(a=t.match(Ft)[0]));for(var n=this._tokens.next();n;)this.handle_token(n),this._last_last_text=this._flags.last_token.text,this._flags.last_token=n,n=this._tokens.next();return e=this._output.get_code(a),e};re.prototype.handle_token=function(e,t){e.type===O.START_EXPR?this.handle_start_expr(e):e.type===O.END_EXPR?this.handle_end_expr(e):e.type===O.START_BLOCK?this.handle_start_block(e):e.type===O.END_BLOCK?this.handle_end_block(e):e.type===O.WORD?this.handle_word(e):e.type===O.RESERVED?this.handle_word(e):e.type===O.SEMICOLON?this.handle_semicolon(e):e.type===O.STRING?this.handle_string(e):e.type===O.EQUALS?this.handle_equals(e):e.type===O.OPERATOR?this.handle_operator(e):e.type===O.COMMA?this.handle_comma(e):e.type===O.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===O.COMMENT?this.handle_comment(e,t):e.type===O.DOT?this.handle_dot(e):e.type===O.EOF?this.handle_eof(e):e.type===O.UNKNOWN?this.handle_unknown(e,t):this.handle_unknown(e,t)};re.prototype.handle_whitespace_and_comments=function(e,t){var a=e.newlines,n=this._options.keep_array_indentation&&rt(this._flags.mode);if(e.comments_before)for(var i=e.comments_before.next();i;)this.handle_whitespace_and_comments(i,t),this.handle_token(i,t),i=e.comments_before.next();if(n)for(var s=0;s0,t);else if(this._options.max_preserve_newlines&&a>this._options.max_preserve_newlines&&(a=this._options.max_preserve_newlines),this._options.preserve_newlines&&a>1){this.print_newline(!1,t);for(var o=1;o0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))};re.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)};re.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===K.Statement&&xn(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))};re.prototype.start_of_object_property=function(){return this._flags.parent.mode===K.ObjectLiteral&&this._flags.mode===K.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||de(this._flags.last_token,["get","set"]))};re.prototype.start_of_statement=function(e){var t=!1;return t=t||de(this._flags.last_token,["var","let","const"])&&e.type===O.WORD,t=t||He(this._flags.last_token,"do"),t=t||!(this._flags.parent.mode===K.ObjectLiteral&&this._flags.mode===K.Statement)&&de(this._flags.last_token,Pa)&&!e.newlines,t=t||He(this._flags.last_token,"else")&&!(He(e,"if")&&!e.comments_before),t=t||this._flags.last_token.type===O.END_EXPR&&(this._previous_flags.mode===K.ForInitializer||this._previous_flags.mode===K.Conditional),t=t||this._flags.last_token.type===O.WORD&&this._flags.mode===K.BlockStatement&&!this._flags.in_case&&!(e.text==="--"||e.text==="++")&&this._last_last_text!=="function"&&e.type!==O.WORD&&e.type!==O.RESERVED,t=t||this._flags.mode===K.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||de(this._flags.last_token,["get","set"])),t?(this.set_mode(K.Statement),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,de(e,["do","for","if","while"])),!0):!1};re.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=K.Expression;if(e.text==="["){if(this._flags.last_token.type===O.WORD||this._flags.last_token.text===")"){de(this._flags.last_token,yt)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}t=K.ArrayLiteral,rt(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),ne(this._flags.last_token.type,[O.START_EXPR,O.END_EXPR,O.WORD,O.OPERATOR,O.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===O.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,t=K.ForInitializer):ne(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=K.Conditional):ne(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&e.whitespace_before===""?this._output.space_before_token=!1:(ne(this._flags.last_token.text,yt)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===O.EQUALS||this._flags.last_token.type===O.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===O.WORD){this._output.space_before_token=!1;var a=this._tokens.peek(-3);if(this._options.space_after_named_function&&a){var n=this._tokens.peek(-4);de(a,["async","function"])||a.text==="*"&&de(n,["async","function"])?this._output.space_before_token=!0:this._flags.mode===K.ObjectLiteral&&(a.text==="{"||a.text===","||a.text==="*"&&(n.text==="{"||n.text===","))&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===O.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(ne(this._last_last_text,["function","yield"])||this._flags.mode===K.ObjectLiteral&&ne(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===O.START_BLOCK?this.print_newline():(this._flags.last_token.type===O.END_EXPR||this._flags.last_token.type===O.START_EXPR||this._flags.last_token.type===O.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===O.COMMA)&&this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()};re.prototype.handle_end_expr=function(e){for(;this._flags.mode===K.Statement;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,e.text==="]"&&rt(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===O.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(e),this.restore_mode(),xn(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===K.Conditional&&(this._previous_flags.mode=K.Expression,this._flags.do_block=!1,this._flags.do_while=!1)};re.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),a=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===O.END_EXPR?(this.set_mode(K.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(K.BlockStatement):a&&(ne(a.text,[":",","])&&ne(t.type,[O.STRING,O.WORD,O.RESERVED])||ne(t.text,["get","set","..."])&&ne(a.type,[O.WORD,O.RESERVED]))?ne(this._last_last_text,["class","interface"])?this.set_mode(K.BlockStatement):this.set_mode(K.ObjectLiteral):this._flags.last_token.type===O.OPERATOR&&(this._flags.last_token.text==="=>"||this._flags.last_token.text==="->")?this.set_mode(K.BlockStatement):ne(this._flags.last_token.type,[O.EQUALS,O.START_EXPR,O.COMMA,O.OPERATOR])||de(this._flags.last_token,["return","throw","import","default"])?this.set_mode(K.ObjectLiteral):this.set_mode(K.BlockStatement);var n=!t.comments_before&&t.text==="}",i=n&&this._flags.last_word==="function"&&this._flags.last_token.type===O.END_EXPR;if(this._options.brace_preserve_inline){var s=0,o=null;this._flags.inline_frame=!0;do if(s+=1,o=this._tokens.peek(s-1),o.newlines){this._flags.inline_frame=!1;break}while(o.type!==O.EOF&&!(o.type===O.END_BLOCK&&o.opened===e))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==O.OPERATOR&&(i||this._flags.last_token.type===O.EQUALS||de(this._flags.last_token,ta)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(rt(this._previous_flags.mode)&&(this._flags.last_token.type===O.START_EXPR||this._flags.last_token.type===O.COMMA)&&((this._flags.last_token.type===O.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===O.COMMA||this._flags.last_token.type===O.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==O.OPERATOR&&this._flags.last_token.type!==O.START_EXPR&&(this._flags.last_token.type===O.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),!n&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()};re.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===K.Statement;)this.restore_mode();var t=this._flags.last_token.type===O.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:this._options.brace_style==="expand"?t||this.print_newline():t||(rt(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(e)};re.prototype.handle_word=function(e){if(e.type===O.RESERVED){if(ne(e.text,["set","get"])&&this._flags.mode!==K.ObjectLiteral)e.type=O.WORD;else if(e.text==="import"&&this._tokens.peek().text==="(")e.type=O.WORD;else if(ne(e.text,["as","from"])&&!this._flags.import_block)e.type=O.WORD;else if(this._flags.mode===K.ObjectLiteral){var t=this._tokens.peek();t.text===":"&&(e.type=O.WORD)}}if(this.start_of_statement(e)?de(this._flags.last_token,["var","let","const"])&&e.type===O.WORD&&(this._flags.declaration_statement=!0):e.newlines&&!Mt(this._flags.mode)&&(this._flags.last_token.type!==O.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==O.EQUALS&&(this._options.preserve_newlines||!de(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(e),this.print_newline()):this.handle_whitespace_and_comments(e),this._flags.do_block&&!this._flags.do_while)if(He(e,"while")){this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&He(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===K.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&de(e,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(e),this._flags.in_case=!0;return}if((this._flags.last_token.type===O.COMMA||this._flags.last_token.type===O.START_EXPR||this._flags.last_token.type===O.EQUALS||this._flags.last_token.type===O.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e)),He(e,"function")){(ne(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(ne(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===O.OPERATOR))&&!this._output.just_added_blankline()&&!e.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===O.RESERVED||this._flags.last_token.type===O.WORD?de(this._flags.last_token,["get","set","new","export"])||de(this._flags.last_token,Pa)?this._output.space_before_token=!0:He(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===O.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(Mt(this._flags.mode)||rt(this._flags.mode))||this.print_newline(),this.print_token(e),this._flags.last_word=e.text;return}var a="NONE";if(this._flags.last_token.type===O.END_BLOCK?this._previous_flags.inline_frame?a="SPACE":de(e,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&e.newlines?a="NEWLINE":(a="SPACE",this._output.space_before_token=!0):a="NEWLINE":this._flags.last_token.type===O.SEMICOLON&&this._flags.mode===K.BlockStatement?a="NEWLINE":this._flags.last_token.type===O.SEMICOLON&&Mt(this._flags.mode)||this._flags.last_token.type===O.STRING||this._flags.last_token.type===O.RESERVED||this._flags.last_token.type===O.WORD||this._flags.last_token.text==="*"&&(ne(this._last_last_text,["function","yield"])||this._flags.mode===K.ObjectLiteral&&ne(this._last_last_text,["{",","]))?a="SPACE":this._flags.last_token.type===O.START_BLOCK?this._flags.inline_frame?a="SPACE":a="NEWLINE":this._flags.last_token.type===O.END_EXPR&&(this._output.space_before_token=!0,a="NEWLINE"),de(e,yt)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?a="SPACE":a="NEWLINE"),de(e,["else","catch","finally"]))if((!(this._flags.last_token.type===O.END_BLOCK&&this._previous_flags.mode===K.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&e.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var n=this._output.current_line;n.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else a==="NEWLINE"?de(this._flags.last_token,ta)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&de(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==O.END_EXPR?(this._flags.last_token.type!==O.START_EXPR||!de(e,["var","let","const"]))&&this._flags.last_token.text!==":"&&(He(e,"if")&&He(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):de(e,yt)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&rt(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():a==="SPACE"&&(this._output.space_before_token=!0);e.previous&&(e.previous.type===O.WORD||e.previous.type===O.RESERVED)&&(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===O.RESERVED&&(e.text==="do"?this._flags.do_block=!0:e.text==="if"?this._flags.if_block=!0:e.text==="import"?this._flags.import_block=!0:this._flags.import_block&&He(e,"from")&&(this._flags.import_block=!1))};re.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);for(var t=this._tokens.peek();this._flags.mode===K.Statement&&!(this._flags.if_block&&He(t,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)};re.prototype.handle_string=function(e){e.text.startsWith("`")&&e.newlines===0&&e.whitespace_before===""&&(e.previous.text===")"||this._flags.last_token.type===O.WORD)||(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===O.RESERVED||this._flags.last_token.type===O.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===O.COMMA||this._flags.last_token.type===O.START_EXPR||this._flags.last_token.type===O.EQUALS||this._flags.last_token.type===O.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):e.text.startsWith("`")&&this._flags.last_token.type===O.END_EXPR&&(e.previous.text==="]"||e.previous.text===")")&&e.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(e)};re.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0};re.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(Mt(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)):this._flags.mode===K.ObjectLiteral||this._flags.mode===K.Statement&&this._flags.parent.mode===K.ObjectLiteral?(this._flags.mode===K.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)};re.prototype.handle_operator=function(e){var t=e.text==="*"&&(de(this._flags.last_token,["function","yield"])||ne(this._flags.last_token.type,[O.START_BLOCK,O.COMMA,O.END_BLOCK,O.SEMICOLON])),a=ne(e.text,["-","+"])&&(ne(this._flags.last_token.type,[O.START_BLOCK,O.START_EXPR,O.EQUALS,O.OPERATOR])||ne(this._flags.last_token.text,yt)||this._flags.last_token.text===",");if(!this.start_of_statement(e)){var n=!t;this.handle_whitespace_and_comments(e,n)}if(de(this._flags.last_token,ta)){this._output.space_before_token=!0,this.print_token(e);return}if(e.text==="*"&&this._flags.last_token.type===O.DOT){this.print_token(e);return}if(e.text==="::"){this.print_token(e);return}if(this._flags.last_token.type===O.OPERATOR&&ne(this._options.operator_position,Sn)&&this.allow_wrap_or_preserved_newline(e),e.text===":"&&this._flags.in_case){this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==O.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var i=!0,s=!0,o=!1;if(e.text===":"?this._flags.ternary_depth===0?i=!1:(this._flags.ternary_depth-=1,o=!0):e.text==="?"&&(this._flags.ternary_depth+=1),!a&&!t&&this._options.preserve_newlines&&ne(e.text,It)){var r=e.text===":",l=r&&o,u=r&&!o;switch(this._options.operator_position){case Dt.before_newline:this._output.space_before_token=!u,this.print_token(e),(!r||l)&&this.allow_wrap_or_preserved_newline(e),this._output.space_before_token=!0;return;case Dt.after_newline:this._output.space_before_token=!0,!r||l?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),this._output.space_before_token=!0;return;case Dt.preserve_newline:u||this.allow_wrap_or_preserved_newline(e),i=!(this._output.just_added_newline()||u),this._output.space_before_token=i,this.print_token(e),this._output.space_before_token=!0;return}}if(t){this.allow_wrap_or_preserved_newline(e),i=!1;var d=this._tokens.peek();s=d&&ne(d.type,[O.WORD,O.RESERVED])}else e.text==="..."?(this.allow_wrap_or_preserved_newline(e),i=this._flags.last_token.type===O.START_BLOCK,s=!1):(ne(e.text,["--","++","!","~"])||a)&&((this._flags.last_token.type===O.COMMA||this._flags.last_token.type===O.START_EXPR)&&this.allow_wrap_or_preserved_newline(e),i=!1,s=!1,e.newlines&&(e.text==="--"||e.text==="++"||e.text==="~")&&this.print_newline(!1,!0),this._flags.last_token.text===";"&&Mt(this._flags.mode)&&(i=!0),this._flags.last_token.type===O.RESERVED?i=!0:this._flags.last_token.type===O.END_EXPR?i=!(this._flags.last_token.text==="]"&&(e.text==="--"||e.text==="++")):this._flags.last_token.type===O.OPERATOR&&(i=ne(e.text,["--","-","++","+"])&&ne(this._flags.last_token.text,["--","-","++","+"]),ne(e.text,["+","-"])&&ne(this._flags.last_token.text,["--","++"])&&(s=!0)),(this._flags.mode===K.BlockStatement&&!this._flags.inline_frame||this._flags.mode===K.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline());this._output.space_before_token=this._output.space_before_token||i,this.print_token(e),this._output.space_before_token=s};re.prototype.handle_block_comment=function(e,t){if(this._output.raw){this._output.add_raw_token(e),e.directives&&e.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(e.directives){this.print_newline(!1,t),this.print_token(e),e.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!Vt.test(e.text)&&!e.newlines){this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0;return}else this.print_block_commment(e,t)};re.prototype.print_block_commment=function(e,t){var a=Gi(e.text),n,i=!1,s=!1,o=e.whitespace_before,r=o.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(a[0]),this.print_newline(!1,t),a.length>1){for(a=a.slice(1),i=zi(a,"*"),s=Yi(a,o),i&&(this._flags.alignment=1),n=0;n0&&a){let i=function(r,l){return r[a].localeCompare(l[a],"zh-CN")},s=[],o=[];e.forEach(r=>{r.folder===!0?(n&&(r[n]=kt(r[n],t,a,n)),s.push(r)):o.push(r)}),s.sort(i),o.sort(i),t===!1&&(s.reverse(),o.reverse()),e.splice(0,e.length,...s.concat(o))}return e}function qi(e){return Array(e).fill(0).map(()=>(Math.random()*16|0).toString(16)).join("")}function gt(e,t){return t=t||2,(Array(t).join(0)+e).slice(-t)}function qe(e){if(typeof e=="number"&&(e.toString().length===13?e=new Date(e):e=new Date(e*1e3)),e instanceof Date){var t=e.getMonth()+1,a=e.getDate(),n=e.getHours(),i=e.getMinutes(),s=e.getSeconds();return e.getFullYear()+"-"+gt(t)+"-"+gt(a)+" "+gt(n)+":"+gt(i)+":"+gt(s)}return""}function it(e){return e.replace(/:?\/+/g,t=>t.indexOf(":")>-1?t:"/")}function Ki(e){const t=i=>{if(Array.isArray(i)){let s=i.length,o=100;if(s>o){let r=[];for(let l=0;ln(""+(l+d),void 0,JSON.stringify(u),u))});return r}return i.map((r,l)=>n(""+l,void 0,JSON.stringify(r),r))}else return Object.keys(i).map(s=>{const o=i[s];return n(s,void 0,JSON.stringify(o),o)})},a=i=>{try{return JSON.parse(i)}catch{return i}},n=(i,s,o,r)=>{var E;let l=(s||"").startsWith("java.lang"),u,d,g;l?(u=((E=s==null?void 0:s.substring(10))==null?void 0:E.toLowerCase())||typeof r,["integer","double","float","byte","short","long"].indexOf(u)>-1&&(u="number"),u==="class"&&(o=o.substring(1,o.length-1))):(r=r||o&&a(o),!Array.isArray(r)&&typeof r!="object"?(l=!0,u=typeof r):(Array.isArray(r)?(g=`size = ${r.length}`,u="array"):(g=`members = ${r&&Object.keys(r).length}`,u="object"),s=s||(Array.isArray(r)?"Array":typeof r),d=r&&t(r)||[]));let f=r==null&&!l;return f&&(s="null",l=!0,o="null"),{name:i,value:o,data:r,dataType:u,type:s,size:g,isNull:f,folder:!l,opened:!1,children:d}};return e&&e.map(i=>n(i.name,i.type,i.value))||[]}function Wi(e){const t=["B","KB","MB"];let a=0;for(;a=1024;)e=e/1024,a++;return e=e.toFixed(2),`${e} ${t[a]}`}function Ze(e,t){const a=n=>n.filter(i=>i.folder).forEach(i=>{a(i.children||[]),t(i)});a(e||[])}function Ua(e,t){let a=document.createElement("a"),n=window.URL.createObjectURL(e);a.href=n,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(n)}function Wa(e){try{var t=document.createElement("textarea");return t.style="position:absolute;left:-99999999px",document.body.appendChild(t),t.innerHTML=e,t.readOnly=!1,t.select(),document.execCommand("copy"),!0}catch{return!1}}function Xi(e){let t=0;for(let a=0,n=0,i=e.length;a{const o={level:s,node:i,name:s===0?c("message.root"):i.name,folder:(i==null?void 0:i.dataType)==="Object"||(i==null?void 0:i.dataType)==="Array",display:!0};o.folder&&(o.expand=!0),t.push(o)},n=(i,s)=>{(i||[]).forEach(o=>{a(o,s),n(o.children,s+1)})};return a(e||{},0),n((e==null?void 0:e.children)||[],1),t}function Ji(e){return new Promise((t,a)=>{const n=document.getElementsByTagName("head")[0],i=document.createElement("script");i.setAttribute("type","text/javascript"),i.src=e,n.appendChild(i),i.readyState?i.onreadystatechange=()=>{(i.readyState==="loaded"||i.readyState==="complete")&&(i.onreadystatechange=null,t())}:(i.onload=function(){t()},i.onerror=function(){a()})})}function Xa(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Qi(e,t){if(e){if(typeof e=="string")return new re(e).beautify();if(e)return JSON.stringify(e,null,4)}return t||""}function $a(e,t){if(!e&&t||!t&&e||e.dataType!==t.dataType||e.name!==t.name||(e==null?void 0:e.children.length)!==t.children.length)return!0;for(let a=0,n=e.children.length;ao.apply(this,s))}}loading(t){const a=Xa(1,9),n=new Image;return n.src=`https://console.ssssssss.org.cn/images/loading.gif?t=${Math.floor(new Date().getTime()/1e3)*1e3+a*100+(t+a)+Xa(0,5)*17}`,n}send(t,a){this.$emit("message",t,a)}status(t,a,...n){const i=new Date;t=c(t,...n)||t,a===!1&&(t=`${t}`),this.statusLog.value.push({content:t,timestamp:qe(i)+"."+gt(i.getMilliseconds(),3)}),this.$emit("status",t)}clearStatusLog(){this.statusLog.value=[]}getStatusLog(){return this.statusLog}}var T=new Zi,$={DO_SAVE:"doSave",DO_TEST:"doTest",LOGINED:"logined",LOGOUT:"logout",SHOW_LOGIN:"showLogin",DO_DOWNLOAD:"do-download",DO_UPLOAD:"do-upload",DO_PUSH:"do-push",DO_RECENT:"do-recent",OPEN:"open",SELECT_NAVBAR_BY_ITEM:"select-navbar-by-item",OPEN_WITH_ID:"open-with-id",OPEN_ITEM:"open-item",DELETE_FILE:"delete-file",DEBUG_CONTINUE:"debug-continue",DEBUG_SETPINTO:"debug-setpinto",SWITCH_THEME:"switch-theme",OPEN_GROUP:"open-group",SWITCH_TOOLBAR:"switch-toolbar",STATUS:"status",MESSAGE:"message",CLOSE:"close",OPEN_EMPTY:"open-empty",LOAD_RESOURCES:"load-resources",REFRESH_RESOURCE:"refresh-resource",DO_SEARCH:"doSearch",NOTIFY:"notify",RELOAD_RESOURCES:"reload-resources",RELOAD_RESOURCES_FINISH:"reload-resources-finish",LOAD_RESOURCES_FINISH:"load-resources-finish",ADD_FOOTER_TOOLBAR:"add-footer-toolbar"};const Rt={baseURL:"",method:"post",timeout:0,withCredentials:!0,responseType:"json",headers:{"Content-Type":"application/x-www-form-urlencoded"},transformRequest:[function(e){return e instanceof FormData?e:za.stringify(e,{arrayFormat:"repeat",allowDots:!0})}],paramsSerializer(e){return za.stringify(e,{arrayFormat:"repeat",allowDots:!0})}};class es{constructor(){ht(this,"successHandle",null);ht(this,"errorHandle",null);ht(this,"endHandle",null);ht(this,"exceptionHandle",(t,a)=>{me.alert(Ei(t,a),c("code.error",t))})}success(t){return this.successHandle=t,this}exception(t){return this.exceptionHandle=t,this}error(t){return this.errorHandle=t,this}end(t){this.endHandle=t}}class ts{constructor(){ht(this,"_axios",null);this._axios=Zn.create(Rt)}getAxios(){return this._axios}setBaseURL(t){Rt.baseURL=t}execute(t){let a={baseURL:Rt.baseURL,...t};return a.headers=a.headers||{},a.headers[D.HEADER_MAGIC_TOKEN]=D.HEADER_MAGIC_TOKEN_VALUE,this._axios.request(a)}processError(t){var a,n,i;t.response?me.alert(JSON.stringify(((a=t.response)==null?void 0:a.data)||"")||c("code.invalid",(n=t.response)==null?void 0:n.status),c("code.invalid",(i=t.response)==null?void 0:i.status)):me.alert(t.message,c("code.httpError")),console.error(t)}sendJson(t,a,n){return this.send(t,JSON.stringify(a),n||{method:"post",headers:{"Content-Type":"application/json"},transformRequest:[]})}sendGet(t,a,n){return n=n||{},n.method="get",this.send(t,a,n)}sendPost(t,a,n){return n=n||{},n.method="post",this.send(t,a,n)}send(t,a,n){let i=n||Rt||{};i.url=t,(i.method||"").toLowerCase()==="post"?i.data=a:i.params=a,i.baseURL=Rt.baseURL;let s=new es,o=!1,r=(l,u)=>{l instanceof Blob?(o=!0,s.successHandle&&s.successHandle(l,u)):l.code===1?(o=!0,s.successHandle&&s.successHandle(l.data,u)):l.code===401?(T.$emit($.SHOW_LOGIN),console.log("\u672A\u767B\u5F55")):s.exceptionHandle&&s.exceptionHandle(l.code,l.message,u)};return this.execute(i).then(l=>{let u=l.data,d=l.headers["content-type"]&&l.headers["content-type"].startsWith("application/json");if(u instanceof Blob&&d){let g=new FileReader;g.readAsText(u),g.onload=function(){try{u=JSON.parse(this.result),r(u,l)}catch(f){console.error(f),r(u,l)}};return}r(u,l)}).catch(l=>{var u;typeof s.errorHandle=="function"?s.errorHandle((u=l.response)==null?void 0:u.data,l.response,l):this.processError(l)}).finally(()=>{typeof s.endHandle=="function"&&s.endHandle(o)}),s}}var Y=new ts;const ce={Alt:512,Ctrl:1024,Shift:2048};new Array(26).fill(0).forEach((e,t)=>ce[String.fromCharCode(65+t)]=65+t);new Array(12).fill(0).forEach((e,t)=>ce[`F${t+1}`]=112+t);const Qt=[],On=e=>{if(e.keyCode){let t=e.keyCode;t|=e.ctrlKey&&ce.Ctrl||0,t|=e.shiftKey&&ce.Shift||0,t|=e.altKey&&ce.Alt||0,t|=e.metaKey&&ce.Ctrl||0;for(let a=0,n=Qt.length;adocument.addEventListener("keydown",On);ce.bind=(e,t,a)=>{_a||(_a=!0,ce.init()),typeof a=="function"&&Qt.push({target:e,code:t,callback:a})};ce.unbind=()=>{Qt.length=0,document.removeEventListener("keydown",On),_a=!1};var as={editor:{base:"vs",rules:[{background:"#ffffff"},{token:"keywords",foreground:"000080",fontStyle:"bold"},{token:"number",foreground:"0000FF"},{token:"keyword",foreground:"000080",fontStyle:"bold"},{token:"string.sql",foreground:"008000"},{token:"tag.sql",foreground:"0033B3"},{token:"attribute.name.sql",foreground:"174AD4"},{token:"attribute.value.sql",foreground:"067D17"},{token:"predefined",foreground:"000000",fontStyle:"italic"},{token:"operator.sql",foreground:"000080",fontStyle:"bold"},{token:"key",foreground:"660E7A"},{token:"string.key.json",foreground:"660E7A"},{token:"string.value.json",foreground:"008000"},{token:"keyword.json",foreground:"0000FF"},{token:"string",foreground:"008000",fontStyle:"bold"},{token:"string.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape",foreground:"000080",fontStyle:"bold"},{token:"comment",foreground:"808080",fontStyle:"italic"},{token:"comment.doc",foreground:"808080",fontStyle:"italic"},{token:"comment.todo",foreground:"008DDE",fontStyle:"italic"},{token:"string.escape",foreground:"000080"}],colors:{"editor.foreground":"#000000","editor.background":"#ffffff","editorLineNumber.foreground":"#999999","editorGutter.background":"#f0f0f0","editor.lineHighlightBackground":"#FFFAE3","dropdown.background":"#F2F2F2","dropdown.foreground":"#000000","list.activeSelectionBackground":"#1A7DC4","list.activeSelectionForeground":"#ffffff"}}},ns={editor:{base:"vs-dark",rules:[{foreground:"A9B7C6"},{token:"keywords",foreground:"CC7832",fontStyle:"bold"},{token:"keyword",foreground:"CC7832",fontStyle:"bold"},{token:"number",foreground:"6897BB"},{token:"string",foreground:"6A8759",fontStyle:"bold"},{token:"string.sql",foreground:"6A8759"},{token:"tag.sql",foreground:"E8BF6A"},{token:"attribute.name.sql",foreground:"BABABA"},{token:"attribute.value.sql",foreground:"6A8759"},{token:"predefined.sql",foreground:"A9B7C6",fontStyle:"italic"},{token:"predefined.magicscript",foreground:"A9B7C6",fontStyle:"italic"},{token:"key",foreground:"9876AA"},{token:"string.key.json",foreground:"9876AA"},{token:"string.value.json",foreground:"6A8759"},{token:"keyword.json",foreground:"6897BB"},{token:"operator.sql",foreground:"CC7832",fontStyle:"bold"},{token:"string.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape",foreground:"000080",fontStyle:"bold"},{token:"comment",foreground:"808080",fontStyle:"italic"},{token:"comment.doc",foreground:"629755",fontStyle:"italic"},{token:"comment.todo",foreground:"A8C023",fontStyle:"italic"},{token:"string.escape",foreground:"CC7832"}],colors:{"editor.background":"#2B2B2B","editorLineNumber.foreground":"#999999","editorGutter.background":"#313335","editor.lineHighlightBackground":"#323232","dropdown.background":"#3C3F41","dropdown.foreground":"#BBBBBB","list.activeSelectionBackground":"#4B6EAF","list.activeSelectionForeground":"#FFFFFF","editorSuggestWidget.selectedBackground":"#113A5C"}},styles:{"main-background-color":"#3C3F41","main-border-color":"#323232","main-color":"#bbb","main-selected-background-color":"#323232","main-hover-background-color":"#353739","main-hover-icon-background-color":"#4C5052","main-selected-color":"#fff","main-icon-color":"#AFB1B3","header-title-color":"#bbb","header-version-color":"#999","header-default-color":"#AFB1B3","empty-background-color":"#282828","empty-key-color":"#489DF6","empty-color":"#A0A0A0","button-hover-background-color":"#365880","button-hover-border-color":"#43688C","button-background-color":"#4C5052","button-border-color":"#5E6060","button-disabled-color":"#5a5a5a","navbar-body-background-color":"#3C3F41","navbar-body-border-color":"#555555","resource-label-color":"#bbb","resource-span-color":"#787878","tree-hover-background-color":"#0d293e","tree-icon-color":"#aeb9c0","table-border-color":"#646464","input-border-color":"#646464","input-foucs-color":"#3D6185","input-background-color":"#45494A","select-background-color":"#3C3F41","select-hover-background-color":"#3C3F41","select-option-background-color":"#3C3F41","select-option-hover-background-color":"#4B6EAF","select-option-border-color":"#808080","data-type-default-color":"#a9b7c6","data-type-string-color":"#6a8759","data-type-integer-color":"#6897bb","data-type-byte-color":"#6897bb","data-type-long-color":"#6897bb","data-type-float-color":"#6897bb","data-type-double-color":"#6897bb","data-type-short-color":"#6897bb","data-type-number-color":"#6897bb","data-type-boolean-color":"#cc7832","data-type-class-color":"#9876aa","data-type-key-color":"#FF8E8E","run-log-background-color":"#2b2b2b","log-level-info":"#ABC023","log-level-error":"#CC666E","log-level-debug":"#299999","log-level-warn":"unset","log-level-trace":"#5394EC","log-color-cyan":"#009191","log-color-link":"#287BDE","todo-color":"#A8C023","debug-line-background-color":"#2D6099","breakpoints-background-color":"#C75450","breakpoint-line-background-color":"#3a2323","select-inputable-background-color":"#45494a","select-inputable-border":"transparent","tab-selected-background-color":"#4E5254","message-em-color":"#68dd9a","checkbox-background-color":"#43494A","checkbox-border-color":"#6B6B6B","checkbox-text-color":"#bbb","checkbox-selected-background-color":"#43494A","checkbox-selected-border-color":"#6B6B6B","toolbox-list-label-color":"#bbb","toolbox-list-span-color":"#787878","toolbox-border-color":"#323232","toolbox-list-hover-background":"#0D293E","toolbox-border-right-color":"#555555","footer-border-color":"#323232","tab-bar-border-color":"#323232","dialog-border-color":"#282828","dialog-shadow-color":"#151515","table-col-border-color":"#333638","table-row-border-color":"#333638","table-hover-background":"#4B6EAF","debug-line-background":"#2D6099","breakpoints-background":"#C75450","breakpoint-line-background":"#3a2323","table-even-background":"#414547","button-disabled-background":"#5A5A5A","toolbox-list-header-icon-color":"#AFB1B3","log-error-color":"#CC666E","text-string-color":"#6A8759","text-number-color":"#6897BB","text-boolean-color":"#CC7832","text-property-color":"#9876aa","text-key-color":"#9876aa","suggest-hover-background":"#113A5C","suggest-hover-color":"#fff","statusbar-em-color":"#68dd9a","tooltip-background-color":"#4B4D4D","tooltip-color":"#bbb","tooltip-border-color":"#636569"}},is={editor:{base:"vs",rules:[{background:"#ffffff"},{token:"keywords",foreground:"000080",fontStyle:"bold"},{token:"number",foreground:"0000FF"},{token:"keyword",foreground:"000080",fontStyle:"bold"},{token:"string.sql",foreground:"008000"},{token:"tag.sql",foreground:"0033B3"},{token:"attribute.name.sql",foreground:"174AD4"},{token:"attribute.value.sql",foreground:"067D17"},{token:"predefined",foreground:"000000",fontStyle:"italic"},{token:"operator.sql",foreground:"000080",fontStyle:"bold"},{token:"key",foreground:"660E7A"},{token:"string.key.json",foreground:"660E7A"},{token:"string.value.json",foreground:"008000"},{token:"keyword.json",foreground:"0000FF"},{token:"string",foreground:"008000",fontStyle:"bold"},{token:"string.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape",foreground:"000080",fontStyle:"bold"},{token:"comment",foreground:"808080",fontStyle:"italic"},{token:"comment.doc",foreground:"808080",fontStyle:"italic"},{token:"comment.todo",foreground:"008DDE",fontStyle:"italic"},{token:"string.escape",foreground:"000080"}],colors:{"editor.foreground":"#000000","editor.background":"#ffffff","editorLineNumber.foreground":"#999999","editorGutter.background":"#F7F8FA","editor.lineHighlightBackground":"#F5F8FE","dropdown.background":"#F2F2F2","dropdown.foreground":"#000000","list.activeSelectionBackground":"#1A7DC4","list.activeSelectionForeground":"#ffffff"}},styles:{"magic-navbar-vertical-width":"42px","magic-navbar-vertical-title-display":"none","magic-navbar-vertical-icon-size":"1.8em","magic-navbar-vertical-header-padding":"5.5px 3px","magic-navbar-vertical-header-margin":"5px","magic-navbar-vertical-header-border-radius":"2px","magic-navbar-vertical-header-border-width":"0px","magic-resource-header-icon-display":"none","magic-header-height":"40px","magic-header-icon-size":"28px","main-hover-icon-background-color":"#EBECF0","main-background-color":"#F7F8FA","main-selected-background-color":"#DFE1E5","main-hover-background-color":"#EBECF0","magic-panel-toolbar-width":"32px","magic-panel-toolbar-size":"24px","tab-selected-border-color":"#3574F0","magic-navbar-horizontal-height":"30px","magic-input-height":"28px","magic-table-row-height":"30px","input-focus-color":"#3574F0","input-focus-border-width":"2px","input-border-radius":"3px","select-background-color":"#fff","select-hover-background-color":"#fff","select-option-hover-background-color":"#CFDEFC","select-option-hover-color":"#000","tree-hover-background-color":"#CFDEFC","button-hover-background-color":"#3574F0","button-hover-color":"#fff","button-border-hover-color":"#3574F0","button-background-color":"#fff","button-height":"24px","checkbox-selected-background-color":"#3574F0","empty-background-color":"#F7F8FA","navbar-body-background-color":"#F7F8FA","magic-header-logo-background-size":"24px","magic-header-logo-background-position":"10px 7px","magic-header-logo-padding":"40px","context-menu-background":"#fff","context-menu-padding":"4px","context-menu-item-border-radius":"4px"}},ss={editor:{base:"vs-dark",rules:[{foreground:"A9B7C6"},{token:"keywords",foreground:"CC7832",fontStyle:"bold"},{token:"keyword",foreground:"CC7832",fontStyle:"bold"},{token:"number",foreground:"6897BB"},{token:"string",foreground:"6A8759",fontStyle:"bold"},{token:"string.sql",foreground:"6A8759"},{token:"tag.sql",foreground:"E8BF6A"},{token:"attribute.name.sql",foreground:"BABABA"},{token:"attribute.value.sql",foreground:"6A8759"},{token:"predefined.sql",foreground:"A9B7C6",fontStyle:"italic"},{token:"predefined.magicscript",foreground:"A9B7C6",fontStyle:"italic"},{token:"key",foreground:"9876AA"},{token:"string.key.json",foreground:"9876AA"},{token:"string.value.json",foreground:"6A8759"},{token:"keyword.json",foreground:"6897BB"},{token:"operator.sql",foreground:"CC7832",fontStyle:"bold"},{token:"string.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape",foreground:"000080",fontStyle:"bold"},{token:"comment",foreground:"808080",fontStyle:"italic"},{token:"comment.doc",foreground:"629755",fontStyle:"italic"},{token:"comment.todo",foreground:"A8C023",fontStyle:"italic"},{token:"string.escape",foreground:"CC7832"}],colors:{"editor.background":"#2B2B2B","editorLineNumber.foreground":"#999999","editorGutter.background":"#313335","editor.lineHighlightBackground":"#323232","dropdown.background":"#3C3F41","dropdown.foreground":"#BBBBBB","list.activeSelectionBackground":"#4B6EAF","list.activeSelectionForeground":"#FFFFFF","editorSuggestWidget.selectedBackground":"#113A5C"}},styles:{"magic-navbar-vertical-width":"42px","magic-navbar-vertical-title-display":"none","magic-navbar-vertical-icon-size":"1.8em","magic-navbar-vertical-header-padding":"5.5px 3px","magic-navbar-vertical-header-margin":"5px","magic-navbar-vertical-header-border-radius":"2px","magic-navbar-vertical-header-border-width":"0px","magic-resource-header-icon-display":"none","magic-header-height":"40px","magic-header-icon-size":"28px","magic-panel-toolbar-width":"32px","magic-panel-toolbar-size":"24px","magic-navbar-horizontal-height":"30px","magic-input-height":"28px","magic-table-row-height":"30px","input-focus-border-width":"2px","input-border-radius":"3px","button-height":"24px","magic-header-logo-background-size":"24px","magic-header-logo-background-position":"10px 7px","magic-header-logo-padding":"40px","context-menu-padding":"4px","context-menu-item-border-radius":"4px","main-background-color":"#3C3F41","main-border-color":"#515151","main-color":"#bbb","main-selected-background-color":"#27292A","main-hover-background-color":"#353739","main-hover-icon-background-color":"#4C5052","main-selected-color":"#fff","main-icon-color":"#AFB1B3","header-title-color":"#bbb","header-version-color":"#999","header-default-color":"#AFB1B3","empty-background-color":"#282828","empty-key-color":"#489DF6","empty-color":"#A0A0A0","button-hover-background-color":"#365880","button-hover-border-color":"#43688C","button-background-color":"#4C5052","button-border-color":"#5E6060","button-disabled-color":"#5a5a5a","navbar-body-background-color":"#3C3F41","navbar-body-border-color":"#555555","resource-label-color":"#bbb","resource-span-color":"#787878","tree-hover-background-color":"#0d293e","tree-icon-color":"#aeb9c0","table-border-color":"#646464","input-border-color":"#646464","input-foucs-color":"#3D6185","input-background-color":"#45494A","select-background-color":"#3C3F41","select-hover-background-color":"#3C3F41","select-option-background-color":"#3C3F41","select-option-hover-background-color":"#4B6EAF","select-option-border-color":"#808080","data-type-default-color":"#a9b7c6","data-type-string-color":"#6a8759","data-type-integer-color":"#6897bb","data-type-byte-color":"#6897bb","data-type-long-color":"#6897bb","data-type-float-color":"#6897bb","data-type-double-color":"#6897bb","data-type-short-color":"#6897bb","data-type-number-color":"#6897bb","data-type-boolean-color":"#cc7832","data-type-class-color":"#9876aa","data-type-key-color":"#FF8E8E","run-log-background-color":"#2b2b2b","log-level-info":"#ABC023","log-level-error":"#CC666E","log-level-debug":"#299999","log-level-warn":"unset","log-level-trace":"#5394EC","log-color-cyan":"#009191","log-color-link":"#287BDE","todo-color":"#A8C023","debug-line-background-color":"#2D6099","breakpoints-background-color":"#C75450","breakpoint-line-background-color":"#3a2323","select-inputable-background-color":"#45494a","select-inputable-border":"transparent","tab-selected-background-color":"#4E5254","message-em-color":"#68dd9a","checkbox-background-color":"#43494A","checkbox-border-color":"#6B6B6B","checkbox-text-color":"#bbb","checkbox-selected-background-color":"#43494A","checkbox-selected-border-color":"#6B6B6B","toolbox-list-label-color":"#bbb","toolbox-list-span-color":"#787878","toolbox-border-color":"#323232","toolbox-list-hover-background":"#0D293E","toolbox-border-right-color":"#555555","footer-border-color":"#323232","tab-bar-border-color":"#323232","dialog-border-color":"#282828","dialog-shadow-color":"#151515","table-col-border-color":"#333638","table-row-border-color":"#333638","table-hover-background":"#4B6EAF","debug-line-background":"#2D6099","breakpoints-background":"#C75450","breakpoint-line-background":"#3a2323","table-even-background":"#414547","button-disabled-background":"#5A5A5A","toolbox-list-header-icon-color":"#AFB1B3","log-error-color":"#CC666E","text-string-color":"#6A8759","text-number-color":"#6897BB","text-boolean-color":"#CC7832","text-property-color":"#9876aa","text-key-color":"#9876aa","suggest-hover-background":"#113A5C","suggest-hover-color":"#fff","statusbar-em-color":"#68dd9a","tab-selected-border-color":"#4A88C7","tooltip-background-color":"#4B4D4D","tooltip-color":"#bbb","tooltip-border-color":"#636569"}};const os="modulepreload",Ja={},rs="./",Qa=function(t,a){return!a||a.length===0?t():Promise.all(a.map(n=>{if(n=`${rs}${n}`,n in Ja)return;Ja[n]=!0;const i=n.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${s}`))return;const o=document.createElement("link");if(o.rel=i?"stylesheet":os,i||(o.as="script",o.crossOrigin=""),o.href=n,document.head.appendChild(o),i)return new Promise((r,l)=>{o.addEventListener("load",r),o.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())},Kt={},At=(e,t)=>{t=t||{};let a=t.editor||{};a.base=a.base||"vs",a.inherit=a.inherit===void 0?!0:a.inherit,a.rules=a.rules||[],a.colors=a.colors||[],$e.defineTheme(e,a),Kt[e]=t.styles||{}},ha={escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,builtinFunctions:[],digits:/[0-9_]+/,binarydigits:/[0-1_]+/,hexdigits:/[[0-9a-fA-F_]+/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/\s+/,"white"],[/```$/,{token:"string",next:"@codeblock"}],[/[a-zA-Z_$][\w$]*[\s]?/,{cases:{"@builtinFunctions":"predefined","~(new|var|if|else|for|in|return|import|break|continue|as|null|true|false|try|catch|finally|async|while|exit|asc|desc|ASC|DESC|assert|let|const|throw|instanceof)[\\s]?":{token:"keywords"},"~(select|from|left|join|on|and|or|order|by|where|group|having|limit|offset|SELECT|FROM|LEFT|JOIN|ON|AND|OR|ORDER|BY|WHERE|GROUP|HAVING|LIMIT|OFFSET)[\\s]{1}":{token:"keywords"},"@default":"identifier"}}],[/::[a-zA-Z]+/,"keywords"],[/[{}()[\]]/,"@brackets"],[/(@digits)\.(@digits)/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)[lLbBsSdDfFmM]?/,"number"],[/\/\*\**/,"comment","@comment"],[/\/\//,"comment","@commentTodo"],[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@string_multi_embedded",nextEmbedded:"mybatis"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],comment:[[/\*\//,"comment","@popall"],[/\S((TODO)|(todo)|(fixme)|(FIXME))\s+/,"comment"],[/((TODO)|(todo)|(fixme)|(FIXME))\s+[^(*/)]+/,"comment.todo"],[/\S/,"comment"]],commentTodo:[[/^/,"","@popall"],[/\S((TODO)|(todo)|(fixme)|(FIXME))\s+/,"comment"],[/((TODO)|(todo)|(fixme)|(FIXME))[ \t]+[^\n]+/,"comment.todo","@popall"],[/\S/,"comment"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],codeblock:[[/^```$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_multi_embedded:[[/[^"]+/,""],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"root"}]}};let Je={},Fa={},Bt=[],fa=[],Wt,ga;const ls=e=>e==="int"||e==="java.lang.Integer"?"java.lang.Integer":e==="string"||e==="java.lang.String"?"java.lang.String":e==="double"||e==="java.lang.Double"?"java.lang.Double":e==="float"||e==="java.lang.Float"?"java.lang.Float":e==="byte"||e==="java.lang.Byte"?"java.lang.Byte":e==="short"||e==="java.lang.Short"?"java.lang.Short":e==="long"||e==="java.lang.Long"?"java.lang.Long":e.indexOf("[]")>-1?"[Ljava.lang.Object;":e||"java.lang.Object",ma=e=>{let t=e.lastIndexOf(".");return t>-1?e.substring(t+1):e},cs=(e,t,a)=>e.length>0&&e[e.length-1].varArgs?a?e.length-1<=t.length:e.length<=t.length:a?e.length-1===t.length:e.length===t.length,us=function(){return new Promise((e,t)=>{Y.sendPost("/classes").success(a=>{Je=a.classes||{},Fa=a.extensions||{},fa=a.functions||[],ha.builtinFunctions=fa.map(n=>n.name),W.setMonarchTokensProvider("magicscript",ha),e()}).exception(a=>{t()}).error(a=>{t()})})},ds=()=>new Promise((e,t)=>{Y.execute({url:"classes.txt",responseType:"text",method:"get"}).then(a=>{const n=[];a.data.split(` -`).forEach(i=>{const s=i.split(":");s.length===1?n.push(s[0].trim()):n.push(...s[1].split(",").map(o=>s[0]+"."+o.trim()))}),Bt=n,e()}).catch(a=>{t()})}),Za=(e,t)=>Array(t>(e+"").length?t-(""+e).length-1:0).join(0)+e,Rn=e=>{let t=[];return e&&(t=e.enums||[],e.superClass&&(t=t.concat(Rn(e.superClass)))),t},An=(e,t,a)=>{if(e.insertText=e.name,e.parameters.length>t){let n=[],i=[];for(let s=t;s{Lt[e]=t},va=e=>{let t=[];if(e){if(t=e.attributes||[],e.superClass&&(t=t.concat(va(e.superClass))),e.interfaces&&e.interfaces.length>0)for(let a=0,n=e.interfaces.length;a{t=t||0;let a=[],n=(i,s,o)=>{if(i&&i.methods)for(let r=0,l=i.methods.length;r0)for(let i=0,s=e.interfaces.length;iFa[e],hs=e=>{if(!e)throw new Error("className is required");let t=Je[e];if(!t){let a=Bt.findIndex(n=>n===e);t=Bt[a]}return t};async function fs(e){let t=Je[e];if(t)t=Je[t.className]||t;else try{(await Y.execute({url:"/class",data:{className:e}})).data.data.forEach(i=>{Je[i.className]=i}),t=Je[e]}catch{}return t}const gs=()=>fa.map(e=>An(e,0,1)),Cn=()=>{if(!Wt&&D.config){let e=D.config;e.autoImportModuleList&&(Wt={},e.autoImportModuleList.forEach(a=>{Wt[a]=a}));let t=["java.util.","java.lang."].concat((e.autoImportPackage||"").replace(/\\s/g,"").replace(/\*/g,"").split(","));ga={},Bt.forEach(a=>{t.forEach(n=>{a.indexOf(n)===0&&a.indexOf(".",n.length)===-1&&(ga[a.substring(a.lastIndexOf(".")+1)]=a)})})}},ms=()=>(Cn(),Wt||{}),vs=()=>(Cn(),ga||{}),bs=()=>Bt;let Ea;const Es=e=>{Ea=e},ys=e=>Ea&&Ea(e),Ts=()=>Object.keys(Je).filter(e=>Je[e].module);let In;const Ss=e=>{In=e};let kn;const xs=e=>{kn=e},Os=()=>In,Rs=()=>kn,ae={findEnums:Rn,findAttributes:va,findMethods:ba,findFunction:gs,loadClass:fs,findClass:hs,initClasses:us,initImportClass:ds,getWrapperClass:ls,matchTypes:cs,getAutoImportModule:ms,getAutoImportClass:vs,getExtension:_s,getImportClass:bs,getOnlineFunction:ys,setupOnlineFunction:Es,setExtensionAttribute:ps,getSimpleClass:ma,getDefineModules:Ts,setApiFinder:Ss,setFunctionFinder:xs,getApiFinder:Os,getFunctionFinder:Rs};class ge extends Error{constructor(t,a){super(t),this.name="ParseException",this.span=a}}class As{constructor(t,a,n,i,s,o,r){this.source=t,this.start=a,this.end=n,this.lineNumber=i,this.endLineNumber=s,this.startCol=o,this.endCol=r}}class Q{constructor(t,a,n){t instanceof Q&&a instanceof Q?(this.source=t.source,this.start=t.start,this.end=a.end,this.cachedText=this.source.substring(this.start,this.end)):(this.source=t,this.start=a||0,this.end=n||t.length,this.cachedText=t.substring(this.start,this.end))}getText(){return this.cachedText}getSource(){return this.source}getStart(){return this.start}getEnd(){return this.end}toString(){return"Span [text="+this.getText()+", start="+this.start+", end="+this.end+"]"}inPosition(t){return this.start<=t&&this.end>=t}getLine(){if(this.line!=null)return this.line;let t=this.start;for(;ta&&(a=e.line_indent_level));var n={mode:t,parent:e,last_token:e?e.last_token:new ka(O.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:a,alignment:0,line_indent_level:e?e.line_indent_level:a,start_line_index:this._output.get_line_number(),ternary_depth:0};return n};re.prototype._reset=function(e){var t=e.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new Ae(this._options,t),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(K.BlockStatement);var a=new Ie(e,this._options);return this._tokens=a.tokenize(),e};re.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e,t=this._reset(this._source_text),a=this._options.eol;this._options.eol==="auto"&&(a=` +`,t&&Ut.test(t||"")&&(a=t.match(Ut)[0]));for(var n=this._tokens.next();n;)this.handle_token(n),this._last_last_text=this._flags.last_token.text,this._flags.last_token=n,n=this._tokens.next();return e=this._output.get_code(a),e};re.prototype.handle_token=function(e,t){e.type===O.START_EXPR?this.handle_start_expr(e):e.type===O.END_EXPR?this.handle_end_expr(e):e.type===O.START_BLOCK?this.handle_start_block(e):e.type===O.END_BLOCK?this.handle_end_block(e):e.type===O.WORD?this.handle_word(e):e.type===O.RESERVED?this.handle_word(e):e.type===O.SEMICOLON?this.handle_semicolon(e):e.type===O.STRING?this.handle_string(e):e.type===O.EQUALS?this.handle_equals(e):e.type===O.OPERATOR?this.handle_operator(e):e.type===O.COMMA?this.handle_comma(e):e.type===O.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===O.COMMENT?this.handle_comment(e,t):e.type===O.DOT?this.handle_dot(e):e.type===O.EOF?this.handle_eof(e):e.type===O.UNKNOWN?this.handle_unknown(e,t):this.handle_unknown(e,t)};re.prototype.handle_whitespace_and_comments=function(e,t){var a=e.newlines,n=this._options.keep_array_indentation&&rt(this._flags.mode);if(e.comments_before)for(var i=e.comments_before.next();i;)this.handle_whitespace_and_comments(i,t),this.handle_token(i,t),i=e.comments_before.next();if(n)for(var s=0;s0,t);else if(this._options.max_preserve_newlines&&a>this._options.max_preserve_newlines&&(a=this._options.max_preserve_newlines),this._options.preserve_newlines&&a>1){this.print_newline(!1,t);for(var o=1;o0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))};re.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)};re.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===K.Statement&&Tn(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))};re.prototype.start_of_object_property=function(){return this._flags.parent.mode===K.ObjectLiteral&&this._flags.mode===K.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||de(this._flags.last_token,["get","set"]))};re.prototype.start_of_statement=function(e){var t=!1;return t=t||de(this._flags.last_token,["var","let","const"])&&e.type===O.WORD,t=t||He(this._flags.last_token,"do"),t=t||!(this._flags.parent.mode===K.ObjectLiteral&&this._flags.mode===K.Statement)&&de(this._flags.last_token,wa)&&!e.newlines,t=t||He(this._flags.last_token,"else")&&!(He(e,"if")&&!e.comments_before),t=t||this._flags.last_token.type===O.END_EXPR&&(this._previous_flags.mode===K.ForInitializer||this._previous_flags.mode===K.Conditional),t=t||this._flags.last_token.type===O.WORD&&this._flags.mode===K.BlockStatement&&!this._flags.in_case&&!(e.text==="--"||e.text==="++")&&this._last_last_text!=="function"&&e.type!==O.WORD&&e.type!==O.RESERVED,t=t||this._flags.mode===K.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||de(this._flags.last_token,["get","set"])),t?(this.set_mode(K.Statement),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,de(e,["do","for","if","while"])),!0):!1};re.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=K.Expression;if(e.text==="["){if(this._flags.last_token.type===O.WORD||this._flags.last_token.text===")"){de(this._flags.last_token,vt)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}t=K.ArrayLiteral,rt(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),ne(this._flags.last_token.type,[O.START_EXPR,O.END_EXPR,O.WORD,O.OPERATOR,O.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===O.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,t=K.ForInitializer):ne(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=K.Conditional):ne(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&e.whitespace_before===""?this._output.space_before_token=!1:(ne(this._flags.last_token.text,vt)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===O.EQUALS||this._flags.last_token.type===O.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===O.WORD){this._output.space_before_token=!1;var a=this._tokens.peek(-3);if(this._options.space_after_named_function&&a){var n=this._tokens.peek(-4);de(a,["async","function"])||a.text==="*"&&de(n,["async","function"])?this._output.space_before_token=!0:this._flags.mode===K.ObjectLiteral&&(a.text==="{"||a.text===","||a.text==="*"&&(n.text==="{"||n.text===","))&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===O.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(ne(this._last_last_text,["function","yield"])||this._flags.mode===K.ObjectLiteral&&ne(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===O.START_BLOCK?this.print_newline():(this._flags.last_token.type===O.END_EXPR||this._flags.last_token.type===O.START_EXPR||this._flags.last_token.type===O.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===O.COMMA)&&this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()};re.prototype.handle_end_expr=function(e){for(;this._flags.mode===K.Statement;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,e.text==="]"&&rt(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===O.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(e),this.restore_mode(),Tn(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===K.Conditional&&(this._previous_flags.mode=K.Expression,this._flags.do_block=!1,this._flags.do_while=!1)};re.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),a=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===O.END_EXPR?(this.set_mode(K.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(K.BlockStatement):a&&(ne(a.text,[":",","])&&ne(t.type,[O.STRING,O.WORD,O.RESERVED])||ne(t.text,["get","set","..."])&&ne(a.type,[O.WORD,O.RESERVED]))?ne(this._last_last_text,["class","interface"])?this.set_mode(K.BlockStatement):this.set_mode(K.ObjectLiteral):this._flags.last_token.type===O.OPERATOR&&(this._flags.last_token.text==="=>"||this._flags.last_token.text==="->")?this.set_mode(K.BlockStatement):ne(this._flags.last_token.type,[O.EQUALS,O.START_EXPR,O.COMMA,O.OPERATOR])||de(this._flags.last_token,["return","throw","import","default"])?this.set_mode(K.ObjectLiteral):this.set_mode(K.BlockStatement);var n=!t.comments_before&&t.text==="}",i=n&&this._flags.last_word==="function"&&this._flags.last_token.type===O.END_EXPR;if(this._options.brace_preserve_inline){var s=0,o=null;this._flags.inline_frame=!0;do if(s+=1,o=this._tokens.peek(s-1),o.newlines){this._flags.inline_frame=!1;break}while(o.type!==O.EOF&&!(o.type===O.END_BLOCK&&o.opened===e))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==O.OPERATOR&&(i||this._flags.last_token.type===O.EQUALS||de(this._flags.last_token,Jt)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(rt(this._previous_flags.mode)&&(this._flags.last_token.type===O.START_EXPR||this._flags.last_token.type===O.COMMA)&&((this._flags.last_token.type===O.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===O.COMMA||this._flags.last_token.type===O.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==O.OPERATOR&&this._flags.last_token.type!==O.START_EXPR&&(this._flags.last_token.type===O.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),!n&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()};re.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===K.Statement;)this.restore_mode();var t=this._flags.last_token.type===O.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:this._options.brace_style==="expand"?t||this.print_newline():t||(rt(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(e)};re.prototype.handle_word=function(e){if(e.type===O.RESERVED){if(ne(e.text,["set","get"])&&this._flags.mode!==K.ObjectLiteral)e.type=O.WORD;else if(e.text==="import"&&this._tokens.peek().text==="(")e.type=O.WORD;else if(ne(e.text,["as","from"])&&!this._flags.import_block)e.type=O.WORD;else if(this._flags.mode===K.ObjectLiteral){var t=this._tokens.peek();t.text===":"&&(e.type=O.WORD)}}if(this.start_of_statement(e)?de(this._flags.last_token,["var","let","const"])&&e.type===O.WORD&&(this._flags.declaration_statement=!0):e.newlines&&!wt(this._flags.mode)&&(this._flags.last_token.type!==O.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==O.EQUALS&&(this._options.preserve_newlines||!de(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(e),this.print_newline()):this.handle_whitespace_and_comments(e),this._flags.do_block&&!this._flags.do_while)if(He(e,"while")){this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&He(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===K.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&de(e,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(e),this._flags.in_case=!0;return}if((this._flags.last_token.type===O.COMMA||this._flags.last_token.type===O.START_EXPR||this._flags.last_token.type===O.EQUALS||this._flags.last_token.type===O.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e)),He(e,"function")){(ne(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(ne(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===O.OPERATOR))&&!this._output.just_added_blankline()&&!e.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===O.RESERVED||this._flags.last_token.type===O.WORD?de(this._flags.last_token,["get","set","new","export"])||de(this._flags.last_token,wa)?this._output.space_before_token=!0:He(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===O.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(wt(this._flags.mode)||rt(this._flags.mode))||this.print_newline(),this.print_token(e),this._flags.last_word=e.text;return}var a="NONE";if(this._flags.last_token.type===O.END_BLOCK?this._previous_flags.inline_frame?a="SPACE":de(e,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&e.newlines?a="NEWLINE":(a="SPACE",this._output.space_before_token=!0):a="NEWLINE":this._flags.last_token.type===O.SEMICOLON&&this._flags.mode===K.BlockStatement?a="NEWLINE":this._flags.last_token.type===O.SEMICOLON&&wt(this._flags.mode)||this._flags.last_token.type===O.STRING||this._flags.last_token.type===O.RESERVED||this._flags.last_token.type===O.WORD||this._flags.last_token.text==="*"&&(ne(this._last_last_text,["function","yield"])||this._flags.mode===K.ObjectLiteral&&ne(this._last_last_text,["{",","]))?a="SPACE":this._flags.last_token.type===O.START_BLOCK?this._flags.inline_frame?a="SPACE":a="NEWLINE":this._flags.last_token.type===O.END_EXPR&&(this._output.space_before_token=!0,a="NEWLINE"),de(e,vt)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?a="SPACE":a="NEWLINE"),de(e,["else","catch","finally"]))if((!(this._flags.last_token.type===O.END_BLOCK&&this._previous_flags.mode===K.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&e.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var n=this._output.current_line;n.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else a==="NEWLINE"?de(this._flags.last_token,Jt)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&de(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==O.END_EXPR?(this._flags.last_token.type!==O.START_EXPR||!de(e,["var","let","const"]))&&this._flags.last_token.text!==":"&&(He(e,"if")&&He(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):de(e,vt)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&rt(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():a==="SPACE"&&(this._output.space_before_token=!0);e.previous&&(e.previous.type===O.WORD||e.previous.type===O.RESERVED)&&(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===O.RESERVED&&(e.text==="do"?this._flags.do_block=!0:e.text==="if"?this._flags.if_block=!0:e.text==="import"?this._flags.import_block=!0:this._flags.import_block&&He(e,"from")&&(this._flags.import_block=!1))};re.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);for(var t=this._tokens.peek();this._flags.mode===K.Statement&&!(this._flags.if_block&&He(t,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)};re.prototype.handle_string=function(e){e.text.startsWith("`")&&e.newlines===0&&e.whitespace_before===""&&(e.previous.text===")"||this._flags.last_token.type===O.WORD)||(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===O.RESERVED||this._flags.last_token.type===O.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===O.COMMA||this._flags.last_token.type===O.START_EXPR||this._flags.last_token.type===O.EQUALS||this._flags.last_token.type===O.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):e.text.startsWith("`")&&this._flags.last_token.type===O.END_EXPR&&(e.previous.text==="]"||e.previous.text===")")&&e.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(e)};re.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0};re.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(wt(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)):this._flags.mode===K.ObjectLiteral||this._flags.mode===K.Statement&&this._flags.parent.mode===K.ObjectLiteral?(this._flags.mode===K.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)};re.prototype.handle_operator=function(e){var t=e.text==="*"&&(de(this._flags.last_token,["function","yield"])||ne(this._flags.last_token.type,[O.START_BLOCK,O.COMMA,O.END_BLOCK,O.SEMICOLON])),a=ne(e.text,["-","+"])&&(ne(this._flags.last_token.type,[O.START_BLOCK,O.START_EXPR,O.EQUALS,O.OPERATOR])||ne(this._flags.last_token.text,vt)||this._flags.last_token.text===",");if(!this.start_of_statement(e)){var n=!t;this.handle_whitespace_and_comments(e,n)}if(de(this._flags.last_token,Jt)){this._output.space_before_token=!0,this.print_token(e);return}if(e.text==="*"&&this._flags.last_token.type===O.DOT){this.print_token(e);return}if(e.text==="::"){this.print_token(e);return}if(this._flags.last_token.type===O.OPERATOR&&ne(this._options.operator_position,yn)&&this.allow_wrap_or_preserved_newline(e),e.text===":"&&this._flags.in_case){this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==O.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var i=!0,s=!0,o=!1;if(e.text===":"?this._flags.ternary_depth===0?i=!1:(this._flags.ternary_depth-=1,o=!0):e.text==="?"&&(this._flags.ternary_depth+=1),!a&&!t&&this._options.preserve_newlines&&ne(e.text,At)){var r=e.text===":",l=r&&o,u=r&&!o;switch(this._options.operator_position){case Nt.before_newline:this._output.space_before_token=!u,this.print_token(e),(!r||l)&&this.allow_wrap_or_preserved_newline(e),this._output.space_before_token=!0;return;case Nt.after_newline:this._output.space_before_token=!0,!r||l?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),this._output.space_before_token=!0;return;case Nt.preserve_newline:u||this.allow_wrap_or_preserved_newline(e),i=!(this._output.just_added_newline()||u),this._output.space_before_token=i,this.print_token(e),this._output.space_before_token=!0;return}}if(t){this.allow_wrap_or_preserved_newline(e),i=!1;var d=this._tokens.peek();s=d&&ne(d.type,[O.WORD,O.RESERVED])}else e.text==="..."?(this.allow_wrap_or_preserved_newline(e),i=this._flags.last_token.type===O.START_BLOCK,s=!1):(ne(e.text,["--","++","!","~"])||a)&&((this._flags.last_token.type===O.COMMA||this._flags.last_token.type===O.START_EXPR)&&this.allow_wrap_or_preserved_newline(e),i=!1,s=!1,e.newlines&&(e.text==="--"||e.text==="++"||e.text==="~")&&this.print_newline(!1,!0),this._flags.last_token.text===";"&&wt(this._flags.mode)&&(i=!0),this._flags.last_token.type===O.RESERVED?i=!0:this._flags.last_token.type===O.END_EXPR?i=!(this._flags.last_token.text==="]"&&(e.text==="--"||e.text==="++")):this._flags.last_token.type===O.OPERATOR&&(i=ne(e.text,["--","-","++","+"])&&ne(this._flags.last_token.text,["--","-","++","+"]),ne(e.text,["+","-"])&&ne(this._flags.last_token.text,["--","++"])&&(s=!0)),(this._flags.mode===K.BlockStatement&&!this._flags.inline_frame||this._flags.mode===K.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline());this._output.space_before_token=this._output.space_before_token||i,this.print_token(e),this._output.space_before_token=s};re.prototype.handle_block_comment=function(e,t){if(this._output.raw){this._output.add_raw_token(e),e.directives&&e.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(e.directives){this.print_newline(!1,t),this.print_token(e),e.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!Bt.test(e.text)&&!e.newlines){this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0;return}else this.print_block_commment(e,t)};re.prototype.print_block_commment=function(e,t){var a=ji(e.text),n,i=!1,s=!1,o=e.whitespace_before,r=o.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(a[0]),this.print_newline(!1,t),a.length>1){for(a=a.slice(1),i=Vi(a,"*"),s=Gi(a,o),i&&(this._flags.alignment=1),n=0;n0&&a){let i=function(r,l){return r[a].localeCompare(l[a],"zh-CN")},s=[],o=[];e.forEach(r=>{r.folder===!0?(n&&(r[n]=Ct(r[n],t,a,n)),s.push(r)):o.push(r)}),s.sort(i),o.sort(i),t===!1&&(s.reverse(),o.reverse()),e.splice(0,e.length,...s.concat(o))}return e}function zi(e){return Array(e).fill(0).map(()=>(Math.random()*16|0).toString(16)).join("")}function ft(e,t){return t=t||2,(Array(t).join(0)+e).slice(-t)}function qe(e){if(typeof e=="number"&&(e.toString().length===13?e=new Date(e):e=new Date(e*1e3)),e instanceof Date){var t=e.getMonth()+1,a=e.getDate(),n=e.getHours(),i=e.getMinutes(),s=e.getSeconds();return e.getFullYear()+"-"+ft(t)+"-"+ft(a)+" "+ft(n)+":"+ft(i)+":"+ft(s)}return""}function it(e){return e.replace(/:?\/+/g,t=>t.indexOf(":")>-1?t:"/")}function Yi(e){const t=i=>{if(Array.isArray(i)){let s=i.length,o=100;if(s>o){let r=[];for(let l=0;ln(""+(l+d),void 0,JSON.stringify(u),u))});return r}return i.map((r,l)=>n(""+l,void 0,JSON.stringify(r),r))}else return Object.keys(i).map(s=>{const o=i[s];return n(s,void 0,JSON.stringify(o),o)})},a=i=>{try{return JSON.parse(i)}catch{return i}},n=(i,s,o,r)=>{var E;let l=(s||"").startsWith("java.lang"),u,d,g;l?(u=((E=s==null?void 0:s.substring(10))==null?void 0:E.toLowerCase())||typeof r,["integer","double","float","byte","short","long"].indexOf(u)>-1&&(u="number"),u==="class"&&(o=o.substring(1,o.length-1))):(r=r||o&&a(o),!Array.isArray(r)&&typeof r!="object"?(l=!0,u=typeof r):(Array.isArray(r)?(g=`size = ${r.length}`,u="array"):(g=`members = ${r&&Object.keys(r).length}`,u="object"),s=s||(Array.isArray(r)?"Array":typeof r),d=r&&t(r)||[]));let f=r==null&&!l;return f&&(s="null",l=!0,o="null"),{name:i,value:o,data:r,dataType:u,type:s,size:g,isNull:f,folder:!l,opened:!1,children:d}};return e&&e.map(i=>n(i.name,i.type,i.value))||[]}function qi(e){const t=["B","KB","MB"];let a=0;for(;a=1024;)e=e/1024,a++;return e=e.toFixed(2),`${e} ${t[a]}`}function Ze(e,t){const a=n=>n.filter(i=>i.folder).forEach(i=>{a(i.children||[]),t(i)});a(e||[])}function Da(e,t){let a=document.createElement("a"),n=window.URL.createObjectURL(e);a.href=n,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(n)}function Ya(e){try{var t=document.createElement("textarea");return t.style="position:absolute;left:-99999999px",document.body.appendChild(t),t.innerHTML=e,t.readOnly=!1,t.select(),document.execCommand("copy"),!0}catch{return!1}}function Ki(e){let t=0;for(let a=0,n=0,i=e.length;a{const o={level:s,node:i,name:s===0?c("message.root"):i.name,folder:(i==null?void 0:i.dataType)==="Object"||(i==null?void 0:i.dataType)==="Array",display:!0};o.folder&&(o.expand=!0),t.push(o)},n=(i,s)=>{(i||[]).forEach(o=>{a(o,s),n(o.children,s+1)})};return a(e||{},0),n((e==null?void 0:e.children)||[],1),t}function Wi(e){return new Promise((t,a)=>{const n=document.getElementsByTagName("head")[0],i=document.createElement("script");i.setAttribute("type","text/javascript"),i.src=e,n.appendChild(i),i.readyState?i.onreadystatechange=()=>{(i.readyState==="loaded"||i.readyState==="complete")&&(i.onreadystatechange=null,t())}:(i.onload=function(){t()},i.onerror=function(){a()})})}function qa(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Ma(e,t){if(!e&&t||!t&&e||e.dataType!==t.dataType||e.name!==t.name||(e==null?void 0:e.children.length)!==t.children.length)return!0;for(let a=0,n=e.children.length;ao.apply(this,s))}}loading(t){const a=qa(1,9),n=new Image;return n.src=`https://console.ssssssss.org.cn/images/loading.gif?t=${Math.floor(new Date().getTime()/1e3)*1e3+a*100+(t+a)+qa(0,5)*17}`,n}send(t,a){this.$emit("message",t,a)}status(t,a,...n){const i=new Date;t=c(t,...n)||t,a===!1&&(t=`${t}`),this.statusLog.value.push({content:t,timestamp:qe(i)+"."+ft(i.getMilliseconds(),3)}),this.$emit("status",t)}clearStatusLog(){this.statusLog.value=[]}getStatusLog(){return this.statusLog}}var T=new Xi,$={DO_SAVE:"doSave",DO_TEST:"doTest",LOGINED:"logined",LOGOUT:"logout",SHOW_LOGIN:"showLogin",DO_DOWNLOAD:"do-download",DO_UPLOAD:"do-upload",DO_PUSH:"do-push",DO_RECENT:"do-recent",OPEN:"open",SELECT_NAVBAR_BY_ITEM:"select-navbar-by-item",OPEN_WITH_ID:"open-with-id",OPEN_ITEM:"open-item",DELETE_FILE:"delete-file",DEBUG_CONTINUE:"debug-continue",DEBUG_SETPINTO:"debug-setpinto",SWITCH_THEME:"switch-theme",OPEN_GROUP:"open-group",SWITCH_TOOLBAR:"switch-toolbar",STATUS:"status",MESSAGE:"message",CLOSE:"close",OPEN_EMPTY:"open-empty",LOAD_RESOURCES:"load-resources",REFRESH_RESOURCE:"refresh-resource",DO_SEARCH:"doSearch",NOTIFY:"notify",RELOAD_RESOURCES:"reload-resources",RELOAD_RESOURCES_FINISH:"reload-resources-finish",LOAD_RESOURCES_FINISH:"load-resources-finish",ADD_FOOTER_TOOLBAR:"add-footer-toolbar"};const xt={baseURL:"",method:"post",timeout:0,withCredentials:!0,responseType:"json",headers:{"Content-Type":"application/x-www-form-urlencoded"},transformRequest:[function(e){return e instanceof FormData?e:ja.stringify(e,{arrayFormat:"repeat",allowDots:!0})}],paramsSerializer(e){return ja.stringify(e,{arrayFormat:"repeat",allowDots:!0})}};class Ji{constructor(){_t(this,"successHandle",null);_t(this,"errorHandle",null);_t(this,"endHandle",null);_t(this,"exceptionHandle",(t,a)=>{me.alert(vi(t,a),c("code.error",t))})}success(t){return this.successHandle=t,this}exception(t){return this.exceptionHandle=t,this}error(t){return this.errorHandle=t,this}end(t){this.endHandle=t}}class Qi{constructor(){_t(this,"_axios",null);this._axios=Jn.create(xt)}getAxios(){return this._axios}setBaseURL(t){xt.baseURL=t}execute(t){let a={baseURL:xt.baseURL,...t};return a.headers=a.headers||{},a.headers[D.HEADER_MAGIC_TOKEN]=D.HEADER_MAGIC_TOKEN_VALUE,this._axios.request(a)}processError(t){var a,n,i;t.response?me.alert(JSON.stringify(((a=t.response)==null?void 0:a.data)||"")||c("code.invalid",(n=t.response)==null?void 0:n.status),c("code.invalid",(i=t.response)==null?void 0:i.status)):me.alert(t.message,c("code.httpError")),console.error(t)}sendJson(t,a,n){return this.send(t,JSON.stringify(a),n||{method:"post",headers:{"Content-Type":"application/json"},transformRequest:[]})}sendGet(t,a,n){return n=n||{},n.method="get",this.send(t,a,n)}sendPost(t,a,n){return n=n||{},n.method="post",this.send(t,a,n)}send(t,a,n){let i=n||xt||{};i.url=t,(i.method||"").toLowerCase()==="post"?i.data=a:i.params=a,i.baseURL=xt.baseURL;let s=new Ji,o=!1,r=(l,u)=>{l instanceof Blob?(o=!0,s.successHandle&&s.successHandle(l,u)):l.code===1?(o=!0,s.successHandle&&s.successHandle(l.data,u)):(l.code===401&&T.$emit($.SHOW_LOGIN),s.exceptionHandle&&s.exceptionHandle(l.code,l.message,u))};return this.execute(i).then(l=>{let u=l.data,d=l.headers["content-type"]&&l.headers["content-type"].startsWith("application/json");if(u instanceof Blob&&d){let g=new FileReader;g.readAsText(u),g.onload=function(){try{u=JSON.parse(this.result),r(u,l)}catch(f){console.error(f),r(u,l)}};return}r(u,l)}).catch(l=>{var u;typeof s.errorHandle=="function"?s.errorHandle((u=l.response)==null?void 0:u.data,l.response,l):this.processError(l)}).finally(()=>{typeof s.endHandle=="function"&&s.endHandle(o)}),s}}var Y=new Qi;const ce={Alt:512,Ctrl:1024,Shift:2048};new Array(26).fill(0).forEach((e,t)=>ce[String.fromCharCode(65+t)]=65+t);new Array(12).fill(0).forEach((e,t)=>ce[`F${t+1}`]=112+t);const Kt=[],Sn=e=>{if(e.keyCode){let t=e.keyCode;t|=e.ctrlKey&&ce.Ctrl||0,t|=e.shiftKey&&ce.Shift||0,t|=e.altKey&&ce.Alt||0,t|=e.metaKey&&ce.Ctrl||0;for(let a=0,n=Kt.length;adocument.addEventListener("keydown",Sn);ce.bind=(e,t,a)=>{da||(da=!0,ce.init()),typeof a=="function"&&Kt.push({target:e,code:t,callback:a})};ce.unbind=()=>{Kt.length=0,document.removeEventListener("keydown",Sn),da=!1};var Zi={editor:{base:"vs",rules:[{background:"#ffffff"},{token:"keywords",foreground:"000080",fontStyle:"bold"},{token:"number",foreground:"0000FF"},{token:"keyword",foreground:"000080",fontStyle:"bold"},{token:"string.sql",foreground:"008000"},{token:"tag.sql",foreground:"0033B3"},{token:"attribute.name.sql",foreground:"174AD4"},{token:"attribute.value.sql",foreground:"067D17"},{token:"predefined",foreground:"000000",fontStyle:"italic"},{token:"operator.sql",foreground:"000080",fontStyle:"bold"},{token:"key",foreground:"660E7A"},{token:"string.key.json",foreground:"660E7A"},{token:"string.value.json",foreground:"008000"},{token:"keyword.json",foreground:"0000FF"},{token:"string",foreground:"008000",fontStyle:"bold"},{token:"string.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape",foreground:"000080",fontStyle:"bold"},{token:"comment",foreground:"808080",fontStyle:"italic"},{token:"comment.doc",foreground:"808080",fontStyle:"italic"},{token:"comment.todo",foreground:"008DDE",fontStyle:"italic"},{token:"string.escape",foreground:"000080"}],colors:{"editor.foreground":"#000000","editor.background":"#ffffff","editorLineNumber.foreground":"#999999","editorGutter.background":"#f0f0f0","editor.lineHighlightBackground":"#FFFAE3","dropdown.background":"#F2F2F2","dropdown.foreground":"#000000","list.activeSelectionBackground":"#1A7DC4","list.activeSelectionForeground":"#ffffff"}}},es={editor:{base:"vs-dark",rules:[{foreground:"A9B7C6"},{token:"keywords",foreground:"CC7832",fontStyle:"bold"},{token:"keyword",foreground:"CC7832",fontStyle:"bold"},{token:"number",foreground:"6897BB"},{token:"string",foreground:"6A8759",fontStyle:"bold"},{token:"string.sql",foreground:"6A8759"},{token:"tag.sql",foreground:"E8BF6A"},{token:"attribute.name.sql",foreground:"BABABA"},{token:"attribute.value.sql",foreground:"6A8759"},{token:"predefined.sql",foreground:"A9B7C6",fontStyle:"italic"},{token:"predefined.magicscript",foreground:"A9B7C6",fontStyle:"italic"},{token:"key",foreground:"9876AA"},{token:"string.key.json",foreground:"9876AA"},{token:"string.value.json",foreground:"6A8759"},{token:"keyword.json",foreground:"6897BB"},{token:"operator.sql",foreground:"CC7832",fontStyle:"bold"},{token:"string.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape",foreground:"000080",fontStyle:"bold"},{token:"comment",foreground:"808080",fontStyle:"italic"},{token:"comment.doc",foreground:"629755",fontStyle:"italic"},{token:"comment.todo",foreground:"A8C023",fontStyle:"italic"},{token:"string.escape",foreground:"CC7832"}],colors:{"editor.background":"#2B2B2B","editorLineNumber.foreground":"#999999","editorGutter.background":"#313335","editor.lineHighlightBackground":"#323232","dropdown.background":"#3C3F41","dropdown.foreground":"#BBBBBB","list.activeSelectionBackground":"#4B6EAF","list.activeSelectionForeground":"#FFFFFF","editorSuggestWidget.selectedBackground":"#113A5C"}},styles:{"main-background-color":"#3C3F41","main-border-color":"#323232","main-color":"#bbb","main-selected-background-color":"#323232","main-hover-background-color":"#353739","main-hover-icon-background-color":"#4C5052","main-selected-color":"#fff","main-icon-color":"#AFB1B3","header-title-color":"#bbb","header-version-color":"#999","header-default-color":"#AFB1B3","empty-background-color":"#282828","empty-key-color":"#489DF6","empty-color":"#A0A0A0","button-hover-background-color":"#365880","button-hover-border-color":"#43688C","button-background-color":"#4C5052","button-border-color":"#5E6060","button-disabled-color":"#5a5a5a","navbar-body-background-color":"#3C3F41","navbar-body-border-color":"#555555","resource-label-color":"#bbb","resource-span-color":"#787878","tree-hover-background-color":"#0d293e","tree-icon-color":"#aeb9c0","table-border-color":"#646464","input-border-color":"#646464","input-foucs-color":"#3D6185","input-background-color":"#45494A","select-background-color":"#3C3F41","select-hover-background-color":"#3C3F41","select-option-background-color":"#3C3F41","select-option-hover-background-color":"#4B6EAF","select-option-border-color":"#808080","data-type-default-color":"#a9b7c6","data-type-string-color":"#6a8759","data-type-integer-color":"#6897bb","data-type-byte-color":"#6897bb","data-type-long-color":"#6897bb","data-type-float-color":"#6897bb","data-type-double-color":"#6897bb","data-type-short-color":"#6897bb","data-type-number-color":"#6897bb","data-type-boolean-color":"#cc7832","data-type-class-color":"#9876aa","data-type-key-color":"#FF8E8E","run-log-background-color":"#2b2b2b","log-level-info":"#ABC023","log-level-error":"#CC666E","log-level-debug":"#299999","log-level-warn":"unset","log-level-trace":"#5394EC","log-color-cyan":"#009191","log-color-link":"#287BDE","todo-color":"#A8C023","debug-line-background-color":"#2D6099","breakpoints-background-color":"#C75450","breakpoint-line-background-color":"#3a2323","select-inputable-background-color":"#45494a","select-inputable-border":"transparent","tab-selected-background-color":"#4E5254","message-em-color":"#68dd9a","checkbox-background-color":"#43494A","checkbox-border-color":"#6B6B6B","checkbox-text-color":"#bbb","checkbox-selected-background-color":"#43494A","checkbox-selected-border-color":"#6B6B6B","toolbox-list-label-color":"#bbb","toolbox-list-span-color":"#787878","toolbox-border-color":"#323232","toolbox-list-hover-background":"#0D293E","toolbox-border-right-color":"#555555","footer-border-color":"#323232","tab-bar-border-color":"#323232","dialog-border-color":"#282828","dialog-shadow-color":"#151515","table-col-border-color":"#333638","table-row-border-color":"#333638","table-hover-background":"#4B6EAF","debug-line-background":"#2D6099","breakpoints-background":"#C75450","breakpoint-line-background":"#3a2323","table-even-background":"#414547","button-disabled-background":"#5A5A5A","toolbox-list-header-icon-color":"#AFB1B3","log-error-color":"#CC666E","text-string-color":"#6A8759","text-number-color":"#6897BB","text-boolean-color":"#CC7832","text-property-color":"#9876aa","text-key-color":"#9876aa","suggest-hover-background":"#113A5C","suggest-hover-color":"#fff","statusbar-em-color":"#68dd9a","tooltip-background-color":"#4B4D4D","tooltip-color":"#bbb","tooltip-border-color":"#636569"}},ts={editor:{base:"vs",rules:[{background:"#ffffff"},{token:"keywords",foreground:"000080",fontStyle:"bold"},{token:"number",foreground:"0000FF"},{token:"keyword",foreground:"000080",fontStyle:"bold"},{token:"string.sql",foreground:"008000"},{token:"tag.sql",foreground:"0033B3"},{token:"attribute.name.sql",foreground:"174AD4"},{token:"attribute.value.sql",foreground:"067D17"},{token:"predefined",foreground:"000000",fontStyle:"italic"},{token:"operator.sql",foreground:"000080",fontStyle:"bold"},{token:"key",foreground:"660E7A"},{token:"string.key.json",foreground:"660E7A"},{token:"string.value.json",foreground:"008000"},{token:"keyword.json",foreground:"0000FF"},{token:"string",foreground:"008000",fontStyle:"bold"},{token:"string.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape",foreground:"000080",fontStyle:"bold"},{token:"comment",foreground:"808080",fontStyle:"italic"},{token:"comment.doc",foreground:"808080",fontStyle:"italic"},{token:"comment.todo",foreground:"008DDE",fontStyle:"italic"},{token:"string.escape",foreground:"000080"}],colors:{"editor.foreground":"#000000","editor.background":"#ffffff","editorLineNumber.foreground":"#999999","editorGutter.background":"#F7F8FA","editor.lineHighlightBackground":"#F5F8FE","dropdown.background":"#F2F2F2","dropdown.foreground":"#000000","list.activeSelectionBackground":"#1A7DC4","list.activeSelectionForeground":"#ffffff"}},styles:{"magic-navbar-vertical-width":"42px","magic-navbar-vertical-title-display":"none","magic-navbar-vertical-icon-size":"1.8em","magic-navbar-vertical-header-padding":"5.5px 3px","magic-navbar-vertical-header-margin":"5px","magic-navbar-vertical-header-border-radius":"2px","magic-navbar-vertical-header-border-width":"0px","magic-resource-header-icon-display":"none","magic-header-height":"40px","magic-header-icon-size":"28px","main-hover-icon-background-color":"#EBECF0","main-background-color":"#F7F8FA","main-selected-background-color":"#DFE1E5","main-hover-background-color":"#EBECF0","magic-panel-toolbar-width":"32px","magic-panel-toolbar-size":"24px","tab-selected-border-color":"#3574F0","magic-navbar-horizontal-height":"30px","magic-input-height":"28px","magic-table-row-height":"30px","input-focus-color":"#3574F0","input-focus-border-width":"2px","input-border-radius":"3px","select-background-color":"#fff","select-hover-background-color":"#fff","select-option-hover-background-color":"#CFDEFC","select-option-hover-color":"#000","tree-hover-background-color":"#CFDEFC","button-hover-background-color":"#3574F0","button-hover-color":"#fff","button-border-hover-color":"#3574F0","button-background-color":"#fff","button-height":"24px","checkbox-selected-background-color":"#3574F0","empty-background-color":"#F7F8FA","navbar-body-background-color":"#F7F8FA","magic-header-logo-background-size":"24px","magic-header-logo-background-position":"10px 7px","magic-header-logo-padding":"40px","context-menu-background":"#fff","context-menu-padding":"4px","context-menu-item-border-radius":"4px"}},as={editor:{base:"vs-dark",rules:[{foreground:"A9B7C6"},{token:"keywords",foreground:"CC7832",fontStyle:"bold"},{token:"keyword",foreground:"CC7832",fontStyle:"bold"},{token:"number",foreground:"6897BB"},{token:"string",foreground:"6A8759",fontStyle:"bold"},{token:"string.sql",foreground:"6A8759"},{token:"tag.sql",foreground:"E8BF6A"},{token:"attribute.name.sql",foreground:"BABABA"},{token:"attribute.value.sql",foreground:"6A8759"},{token:"predefined.sql",foreground:"A9B7C6",fontStyle:"italic"},{token:"predefined.magicscript",foreground:"A9B7C6",fontStyle:"italic"},{token:"key",foreground:"9876AA"},{token:"string.key.json",foreground:"9876AA"},{token:"string.value.json",foreground:"6A8759"},{token:"keyword.json",foreground:"6897BB"},{token:"operator.sql",foreground:"CC7832",fontStyle:"bold"},{token:"string.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape",foreground:"000080",fontStyle:"bold"},{token:"comment",foreground:"808080",fontStyle:"italic"},{token:"comment.doc",foreground:"629755",fontStyle:"italic"},{token:"comment.todo",foreground:"A8C023",fontStyle:"italic"},{token:"string.escape",foreground:"CC7832"}],colors:{"editor.background":"#2B2B2B","editorLineNumber.foreground":"#999999","editorGutter.background":"#313335","editor.lineHighlightBackground":"#323232","dropdown.background":"#3C3F41","dropdown.foreground":"#BBBBBB","list.activeSelectionBackground":"#4B6EAF","list.activeSelectionForeground":"#FFFFFF","editorSuggestWidget.selectedBackground":"#113A5C"}},styles:{"magic-navbar-vertical-width":"42px","magic-navbar-vertical-title-display":"none","magic-navbar-vertical-icon-size":"1.8em","magic-navbar-vertical-header-padding":"5.5px 3px","magic-navbar-vertical-header-margin":"5px","magic-navbar-vertical-header-border-radius":"2px","magic-navbar-vertical-header-border-width":"0px","magic-resource-header-icon-display":"none","magic-header-height":"40px","magic-header-icon-size":"28px","magic-panel-toolbar-width":"32px","magic-panel-toolbar-size":"24px","magic-navbar-horizontal-height":"30px","magic-input-height":"28px","magic-table-row-height":"30px","input-focus-border-width":"2px","input-border-radius":"3px","button-height":"24px","magic-header-logo-background-size":"24px","magic-header-logo-background-position":"10px 7px","magic-header-logo-padding":"40px","context-menu-padding":"4px","context-menu-item-border-radius":"4px","main-background-color":"#3C3F41","main-border-color":"#515151","main-color":"#bbb","main-selected-background-color":"#27292A","main-hover-background-color":"#353739","main-hover-icon-background-color":"#4C5052","main-selected-color":"#fff","main-icon-color":"#AFB1B3","header-title-color":"#bbb","header-version-color":"#999","header-default-color":"#AFB1B3","empty-background-color":"#282828","empty-key-color":"#489DF6","empty-color":"#A0A0A0","button-hover-background-color":"#365880","button-hover-border-color":"#43688C","button-background-color":"#4C5052","button-border-color":"#5E6060","button-disabled-color":"#5a5a5a","navbar-body-background-color":"#3C3F41","navbar-body-border-color":"#555555","resource-label-color":"#bbb","resource-span-color":"#787878","tree-hover-background-color":"#0d293e","tree-icon-color":"#aeb9c0","table-border-color":"#646464","input-border-color":"#646464","input-foucs-color":"#3D6185","input-background-color":"#45494A","select-background-color":"#3C3F41","select-hover-background-color":"#3C3F41","select-option-background-color":"#3C3F41","select-option-hover-background-color":"#4B6EAF","select-option-border-color":"#808080","data-type-default-color":"#a9b7c6","data-type-string-color":"#6a8759","data-type-integer-color":"#6897bb","data-type-byte-color":"#6897bb","data-type-long-color":"#6897bb","data-type-float-color":"#6897bb","data-type-double-color":"#6897bb","data-type-short-color":"#6897bb","data-type-number-color":"#6897bb","data-type-boolean-color":"#cc7832","data-type-class-color":"#9876aa","data-type-key-color":"#FF8E8E","run-log-background-color":"#2b2b2b","log-level-info":"#ABC023","log-level-error":"#CC666E","log-level-debug":"#299999","log-level-warn":"unset","log-level-trace":"#5394EC","log-color-cyan":"#009191","log-color-link":"#287BDE","todo-color":"#A8C023","debug-line-background-color":"#2D6099","breakpoints-background-color":"#C75450","breakpoint-line-background-color":"#3a2323","select-inputable-background-color":"#45494a","select-inputable-border":"transparent","tab-selected-background-color":"#4E5254","message-em-color":"#68dd9a","checkbox-background-color":"#43494A","checkbox-border-color":"#6B6B6B","checkbox-text-color":"#bbb","checkbox-selected-background-color":"#43494A","checkbox-selected-border-color":"#6B6B6B","toolbox-list-label-color":"#bbb","toolbox-list-span-color":"#787878","toolbox-border-color":"#323232","toolbox-list-hover-background":"#0D293E","toolbox-border-right-color":"#555555","footer-border-color":"#323232","tab-bar-border-color":"#323232","dialog-border-color":"#282828","dialog-shadow-color":"#151515","table-col-border-color":"#333638","table-row-border-color":"#333638","table-hover-background":"#4B6EAF","debug-line-background":"#2D6099","breakpoints-background":"#C75450","breakpoint-line-background":"#3a2323","table-even-background":"#414547","button-disabled-background":"#5A5A5A","toolbox-list-header-icon-color":"#AFB1B3","log-error-color":"#CC666E","text-string-color":"#6A8759","text-number-color":"#6897BB","text-boolean-color":"#CC7832","text-property-color":"#9876aa","text-key-color":"#9876aa","suggest-hover-background":"#113A5C","suggest-hover-color":"#fff","statusbar-em-color":"#68dd9a","tab-selected-border-color":"#4A88C7","tooltip-background-color":"#4B4D4D","tooltip-color":"#bbb","tooltip-border-color":"#636569"}};const ns="modulepreload",Ka={},is="./",Wa=function(t,a){return!a||a.length===0?t():Promise.all(a.map(n=>{if(n=`${is}${n}`,n in Ka)return;Ka[n]=!0;const i=n.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${s}`))return;const o=document.createElement("link");if(o.rel=i?"stylesheet":ns,i||(o.as="script",o.crossOrigin=""),o.href=n,document.head.appendChild(o),i)return new Promise((r,l)=>{o.addEventListener("load",r),o.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())},Gt={},Ot=(e,t)=>{t=t||{};let a=t.editor||{};a.base=a.base||"vs",a.inherit=a.inherit===void 0?!0:a.inherit,a.rules=a.rules||[],a.colors=a.colors||[],$e.defineTheme(e,a),Gt[e]=t.styles||{}},pa={escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,builtinFunctions:[],digits:/[0-9_]+/,binarydigits:/[0-1_]+/,hexdigits:/[[0-9a-fA-F_]+/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/\s+/,"white"],[/```$/,{token:"string",next:"@codeblock"}],[/[a-zA-Z_$][\w$]*[\s]?/,{cases:{"@builtinFunctions":"predefined","~(new|var|if|else|for|in|return|import|break|continue|as|null|true|false|try|catch|finally|async|while|exit|asc|desc|ASC|DESC|assert|let|const|throw|instanceof)[\\s]?":{token:"keywords"},"~(select|from|left|join|on|and|or|order|by|where|group|having|limit|offset|SELECT|FROM|LEFT|JOIN|ON|AND|OR|ORDER|BY|WHERE|GROUP|HAVING|LIMIT|OFFSET)[\\s]{1}":{token:"keywords"},"@default":"identifier"}}],[/::[a-zA-Z]+/,"keywords"],[/[{}()[\]]/,"@brackets"],[/(@digits)\.(@digits)/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)[lLbBsSdDfFmM]?/,"number"],[/\/\*\**/,"comment","@comment"],[/\/\//,"comment","@commentTodo"],[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@string_multi_embedded",nextEmbedded:"mybatis"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],comment:[[/\*\//,"comment","@popall"],[/\S((TODO)|(todo)|(fixme)|(FIXME))\s+/,"comment"],[/((TODO)|(todo)|(fixme)|(FIXME))\s+[^(*/)]+/,"comment.todo"],[/\S/,"comment"]],commentTodo:[[/^/,"","@popall"],[/\S((TODO)|(todo)|(fixme)|(FIXME))\s+/,"comment"],[/((TODO)|(todo)|(fixme)|(FIXME))[ \t]+[^\n]+/,"comment.todo","@popall"],[/\S/,"comment"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],codeblock:[[/^```$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_multi_embedded:[[/[^"]+/,""],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"root"}]}};let Je={},Pa={},$t=[],_a=[],zt,ha;const ss=e=>e==="int"||e==="java.lang.Integer"?"java.lang.Integer":e==="string"||e==="java.lang.String"?"java.lang.String":e==="double"||e==="java.lang.Double"?"java.lang.Double":e==="float"||e==="java.lang.Float"?"java.lang.Float":e==="byte"||e==="java.lang.Byte"?"java.lang.Byte":e==="short"||e==="java.lang.Short"?"java.lang.Short":e==="long"||e==="java.lang.Long"?"java.lang.Long":e.indexOf("[]")>-1?"[Ljava.lang.Object;":e||"java.lang.Object",fa=e=>{let t=e.lastIndexOf(".");return t>-1?e.substring(t+1):e},os=(e,t,a)=>e.length>0&&e[e.length-1].varArgs?a?e.length-1<=t.length:e.length<=t.length:a?e.length-1===t.length:e.length===t.length,rs=function(){return new Promise((e,t)=>{Y.sendPost("/classes").success(a=>{Je=a.classes||{},Pa=a.extensions||{},_a=a.functions||[],pa.builtinFunctions=_a.map(n=>n.name),W.setMonarchTokensProvider("magicscript",pa),e()}).exception(a=>{t()}).error(a=>{t()})})},ls=()=>new Promise((e,t)=>{Y.execute({url:"classes.txt",responseType:"text",method:"get"}).then(a=>{const n=[];a.data.split(` +`).forEach(i=>{const s=i.split(":");s.length===1?n.push(s[0].trim()):n.push(...s[1].split(",").map(o=>s[0]+"."+o.trim()))}),$t=n,e()}).catch(a=>{t()})}),Xa=(e,t)=>Array(t>(e+"").length?t-(""+e).length-1:0).join(0)+e,xn=e=>{let t=[];return e&&(t=e.enums||[],e.superClass&&(t=t.concat(xn(e.superClass)))),t},On=(e,t,a)=>{if(e.insertText=e.name,e.parameters.length>t){let n=[],i=[];for(let s=t;s{It[e]=t},ga=e=>{let t=[];if(e){if(t=e.attributes||[],e.superClass&&(t=t.concat(ga(e.superClass))),e.interfaces&&e.interfaces.length>0)for(let a=0,n=e.interfaces.length;a{t=t||0;let a=[],n=(i,s,o)=>{if(i&&i.methods)for(let r=0,l=i.methods.length;r0)for(let i=0,s=e.interfaces.length;iPa[e],ds=e=>{if(!e)throw new Error("className is required");let t=Je[e];if(!t){let a=$t.findIndex(n=>n===e);t=$t[a]}return t};async function ps(e){let t=Je[e];if(t)t=Je[t.className]||t;else try{(await Y.execute({url:"/class",data:{className:e}})).data.data.forEach(i=>{Je[i.className]=i}),t=Je[e]}catch{}return t}const _s=()=>_a.map(e=>On(e,0,1)),Rn=()=>{if(!zt&&D.config){let e=D.config;e.autoImportModuleList&&(zt={},e.autoImportModuleList.forEach(a=>{zt[a]=a}));let t=["java.util.","java.lang."].concat((e.autoImportPackage||"").replace(/\\s/g,"").replace(/\*/g,"").split(","));ha={},$t.forEach(a=>{t.forEach(n=>{a.indexOf(n)===0&&a.indexOf(".",n.length)===-1&&(ha[a.substring(a.lastIndexOf(".")+1)]=a)})})}},hs=()=>(Rn(),zt||{}),fs=()=>(Rn(),ha||{}),gs=()=>$t;let va;const ms=e=>{va=e},vs=e=>va&&va(e),bs=()=>Object.keys(Je).filter(e=>Je[e].module);let An;const Es=e=>{An=e};let Cn;const ys=e=>{Cn=e},Ts=()=>An,Ss=()=>Cn,ae={findEnums:xn,findAttributes:ga,findMethods:ma,findFunction:_s,loadClass:ps,findClass:ds,initClasses:rs,initImportClass:ls,getWrapperClass:ss,matchTypes:os,getAutoImportModule:hs,getAutoImportClass:fs,getExtension:us,getImportClass:gs,getOnlineFunction:vs,setupOnlineFunction:ms,setExtensionAttribute:cs,getSimpleClass:fa,getDefineModules:bs,setApiFinder:Es,setFunctionFinder:ys,getApiFinder:Ts,getFunctionFinder:Ss};class ge extends Error{constructor(t,a){super(t),this.name="ParseException",this.span=a}}class xs{constructor(t,a,n,i,s,o,r){this.source=t,this.start=a,this.end=n,this.lineNumber=i,this.endLineNumber=s,this.startCol=o,this.endCol=r}}class Q{constructor(t,a,n){t instanceof Q&&a instanceof Q?(this.source=t.source,this.start=t.start,this.end=a.end,this.cachedText=this.source.substring(this.start,this.end)):(this.source=t,this.start=a||0,this.end=n||t.length,this.cachedText=t.substring(this.start,this.end))}getText(){return this.cachedText}getSource(){return this.source}getStart(){return this.start}getEnd(){return this.end}toString(){return"Span [text="+this.getText()+", start="+this.start+", end="+this.end+"]"}inPosition(t){return this.start<=t&&this.end>=t}getLine(){if(this.line!=null)return this.line;let t=this.start;for(;tthis.source.length-1||this.source.charAt(a)===` `);)a++;let n=0,i=t;for(;i>0&&i",error:">"},LessEqual:{literal:"<=",error:"<="},GreaterEqual:{literal:">=",error:">="},Equal:{literal:"==",error:"=="},NotEqual:{literal:"!=",error:"!="},Assignment:{literal:"=",error:"="},PlusPlus:{literal:"++",error:"++"},MinusMinus:{literal:"--",error:"--"},PlusEqual:{literal:"+=",error:"+="},MinusEqual:{literal:"-=",error:"-="},AsteriskEqual:{literal:"*=",error:"*="},ForwardSlashEqual:{literal:"/=",error:"/="},PercentEqual:{literal:"%=",error:"%="},ColonColon:{literal:"::",error:"::"},EqualEqualEqual:{literal:"===",error:"==="},NotEqualEqual:{literal:"!==",error:"!=="},And:{literal:"&&",error:"&&"},Or:{literal:"||",error:"||"},Xor:{literal:"^",error:"^"},Not:{literal:"!",error:"!"},BitAnd:{literal:"&",error:"&"},BitOr:{literal:"|",error:"|"},BitNot:{literal:"~",error:"~"},LShift:{literal:"<<",error:"<<"},RShift:{literal:">>",error:">>"},RShift2:{literal:">>>",error:">>>"},XorEqual:{literal:"^=",error:"^=",modifiable:!0},BitAndEqual:{literal:"&=",error:"&=",modifiable:!0},BitOrEqual:{literal:"|=",error:"|=",modifiable:!0},LShiftEqual:{literal:"<<=",error:"<<=",modifiable:!0},RShiftEqual:{literal:">>=",error:">>=",modifiable:!0},RShift2Equal:{literal:">>>=",error:">>>=",modifiable:!0},SqlAnd:{literal:"and",error:"and"},SqlOr:{literal:"or",error:"or"},SqlNotEqual:{literal:"<>",error:"<>",inLinq:!0},InstanceOf:{literal:"instanceof",error:"instanceof"},Questionmark:{literal:"?",error:"?"},DoubleQuote:{literal:'"',error:'"'},TripleQuote:{literal:'"""',error:'"""'},SingleQuote:{literal:"'",error:"'"},Lambda:{error:"=> \u6216 ->"},BooleanLiteral:{error:"true \u6216 false"},DoubleLiteral:{error:"\u4E00\u4E2A double \u7C7B\u578B\u6570\u503C"},DecimalLiteral:{error:"\u4E00\u4E2A BigDecimal \u7C7B\u578B\u6570\u503C"},FloatLiteral:{error:"\u4E00\u4E2A float \u7C7B\u578B\u6570\u503C"},LongLiteral:{error:"\u4E00\u4E2A long \u7C7B\u578B\u6570\u503C"},IntegerLiteral:{error:"\u4E00\u4E2A int \u7C7B\u578B\u6570\u503C"},ShortLiteral:{error:"\u4E00\u4E2A short \u7C7B\u578B\u6570\u503C"},ByteLiteral:{error:"\u4E00\u4E2A byte \u7C7B\u578B\u6570\u636E"},CharacterLiteral:{error:"\u4E00\u4E2A char \u7C7B\u578B\u6570\u636E"},RegexpLiteral:{error:"\u4E00\u4E2A \u6B63\u5219\u8868\u8FBE\u5F0F"},StringLiteral:{error:"\u4E00\u4E2A \u5B57\u7B26\u4E32"},NullLiteral:{error:"null"},Language:{error:"language"},Identifier:{error:"\u6807\u8BC6\u7B26"},Unknown:{error:"unknown"}};let Cs=Object.getOwnPropertyNames(p).map(e=>p[e]);p.getSortedValues=function(){return this.values?this.values:(this.values=Cs.sort(function(e,t){return!e.literal&&!t.literal?0:!e.literal&&!!t.literal?1:!!e.literal&&!t.literal?-1:t.literal.length-e.literal.length}),this.values)};class Ve{constructor(t,a,n){this.type=t,this.span=a,n instanceof _t?this.tokenStream=n:n&&(this.value=n)}getTokenType(){return this.type}getTokenStream(){return this.tokenStream}getSpan(){return this.span}getText(){return this.span.getText()}}class Me extends Ve{constructor(t,a,n){super(t,a,n)}getJavaType(){return this.type===p.StringLiteral?"java.lang.String":this.type===p.DoubleLiteral?"java.lang.Double":this.type===p.ByteLiteral?"java.lang.Byte":this.type===p.FloatLiteral?"java.lang.Float":this.type===p.DecimalLiteral?"java.math.BigDecimal":this.type===p.IntegerLiteral?"java.lang.Integer":this.type===p.LongLiteral?"java.lang.Long":this.type===p.BooleanLiteral?"java.lang.Boolean":this.type===p.RegexpLiteral?"java.util.regex.Pattern":"java.lang.Object"}}class Is{constructor(t,a,n){this.index=a===void 0?0:a,this.end=n===void 0?t.length:n,this.source=t,this.spanStart=0}hasMore(){return this.indexthis.end)return!1;for(let i=0,s=this.index;i=this.end||t.charAt(i)!==this.source.charAt(s))return!1;return a&&(this.index+=n),!0}matchAny(t,a){for(let n=0,i=t.length;n=this.end)return!1;let a=this.source.charAt(this.index);return a.match(/[a-zA-Z0-9_\u4e00-\u9fa5]/)||a==="$"||a==="_"||a==="@"?(t&&this.index++,!0):!1}matchIdentifierPart(t){if(this.index>=this.end)return!1;let a=this.source.charAt(this.index);return a.match(/[a-zA-Z0-9_\u4e00-\u9fa5]/)||a==="@"?(t&&this.index++,!0):!1}skipWhiteSpace(){for(;this.index",error:">"},LessEqual:{literal:"<=",error:"<="},GreaterEqual:{literal:">=",error:">="},Equal:{literal:"==",error:"=="},NotEqual:{literal:"!=",error:"!="},Assignment:{literal:"=",error:"="},PlusPlus:{literal:"++",error:"++"},MinusMinus:{literal:"--",error:"--"},PlusEqual:{literal:"+=",error:"+="},MinusEqual:{literal:"-=",error:"-="},AsteriskEqual:{literal:"*=",error:"*="},ForwardSlashEqual:{literal:"/=",error:"/="},PercentEqual:{literal:"%=",error:"%="},ColonColon:{literal:"::",error:"::"},EqualEqualEqual:{literal:"===",error:"==="},NotEqualEqual:{literal:"!==",error:"!=="},And:{literal:"&&",error:"&&"},Or:{literal:"||",error:"||"},Xor:{literal:"^",error:"^"},Not:{literal:"!",error:"!"},BitAnd:{literal:"&",error:"&"},BitOr:{literal:"|",error:"|"},BitNot:{literal:"~",error:"~"},LShift:{literal:"<<",error:"<<"},RShift:{literal:">>",error:">>"},RShift2:{literal:">>>",error:">>>"},XorEqual:{literal:"^=",error:"^=",modifiable:!0},BitAndEqual:{literal:"&=",error:"&=",modifiable:!0},BitOrEqual:{literal:"|=",error:"|=",modifiable:!0},LShiftEqual:{literal:"<<=",error:"<<=",modifiable:!0},RShiftEqual:{literal:">>=",error:">>=",modifiable:!0},RShift2Equal:{literal:">>>=",error:">>>=",modifiable:!0},SqlAnd:{literal:"and",error:"and"},SqlOr:{literal:"or",error:"or"},SqlNotEqual:{literal:"<>",error:"<>",inLinq:!0},InstanceOf:{literal:"instanceof",error:"instanceof"},Questionmark:{literal:"?",error:"?"},DoubleQuote:{literal:'"',error:'"'},TripleQuote:{literal:'"""',error:'"""'},SingleQuote:{literal:"'",error:"'"},Lambda:{error:"=> \u6216 ->"},BooleanLiteral:{error:"true \u6216 false"},DoubleLiteral:{error:"\u4E00\u4E2A double \u7C7B\u578B\u6570\u503C"},DecimalLiteral:{error:"\u4E00\u4E2A BigDecimal \u7C7B\u578B\u6570\u503C"},FloatLiteral:{error:"\u4E00\u4E2A float \u7C7B\u578B\u6570\u503C"},LongLiteral:{error:"\u4E00\u4E2A long \u7C7B\u578B\u6570\u503C"},IntegerLiteral:{error:"\u4E00\u4E2A int \u7C7B\u578B\u6570\u503C"},ShortLiteral:{error:"\u4E00\u4E2A short \u7C7B\u578B\u6570\u503C"},ByteLiteral:{error:"\u4E00\u4E2A byte \u7C7B\u578B\u6570\u636E"},CharacterLiteral:{error:"\u4E00\u4E2A char \u7C7B\u578B\u6570\u636E"},RegexpLiteral:{error:"\u4E00\u4E2A \u6B63\u5219\u8868\u8FBE\u5F0F"},StringLiteral:{error:"\u4E00\u4E2A \u5B57\u7B26\u4E32"},NullLiteral:{error:"null"},Language:{error:"language"},Identifier:{error:"\u6807\u8BC6\u7B26"},Unknown:{error:"unknown"}};let Os=Object.getOwnPropertyNames(p).map(e=>p[e]);p.getSortedValues=function(){return this.values?this.values:(this.values=Os.sort(function(e,t){return!e.literal&&!t.literal?0:!e.literal&&!!t.literal?1:!!e.literal&&!t.literal?-1:t.literal.length-e.literal.length}),this.values)};class je{constructor(t,a,n){this.type=t,this.span=a,n instanceof yt?this.tokenStream=n:n&&(this.value=n)}getTokenType(){return this.type}getTokenStream(){return this.tokenStream}getSpan(){return this.span}getText(){return this.span.getText()}}class Me extends je{constructor(t,a,n){super(t,a,n)}getJavaType(){return this.type===p.StringLiteral?"java.lang.String":this.type===p.DoubleLiteral?"java.lang.Double":this.type===p.ByteLiteral?"java.lang.Byte":this.type===p.FloatLiteral?"java.lang.Float":this.type===p.DecimalLiteral?"java.math.BigDecimal":this.type===p.IntegerLiteral?"java.lang.Integer":this.type===p.LongLiteral?"java.lang.Long":this.type===p.BooleanLiteral?"java.lang.Boolean":this.type===p.RegexpLiteral?"java.util.regex.Pattern":"java.lang.Object"}}class Rs{constructor(t,a,n){this.index=a===void 0?0:a,this.end=n===void 0?t.length:n,this.source=t,this.spanStart=0}hasMore(){return this.indexthis.end)return!1;for(let i=0,s=this.index;i=this.end||t.charAt(i)!==this.source.charAt(s))return!1;return a&&(this.index+=n),!0}matchAny(t,a){for(let n=0,i=t.length;n=this.end)return!1;let a=this.source.charAt(this.index);return a.match(/[a-zA-Z0-9_\u4e00-\u9fa5]/)||a==="$"||a==="_"||a==="@"?(t&&this.index++,!0):!1}matchIdentifierPart(t){if(this.index>=this.end)return!1;let a=this.source.charAt(this.index);return a.match(/[a-zA-Z0-9_\u4e00-\u9fa5]/)||a==="@"?(t&&this.index++,!0):!1}skipWhiteSpace(){for(;this.index0&&this.tokens[this.end-1]}hasMore(){return this.index=this.end)return!1;let i=!1;if(Array.isArray(t)){for(let s=0,o=t.length;sa.push(this.textToString(n))),a.join(",")}else return t.error}expect(t,a){if(this.match(t,!0,a))return this.tokens[this.index-1];if(this.hasMore()){let n=this.tokens[this.index];throw t instanceof Ve&&(t=t.type.error),new ge("Expected '"+this.textToString(t)+"', but got '"+n.getText()+"'",n.getSpan())}else{let n=this.tokens[this.index-1].getSpan();return new Ve(p.Unknown,n)}}hasPrev(){return this.index>0}getSource(){return this.tokens.length===0?null:this.tokens[0].getSpan().getSource()}}const ks=(e,t)=>{if(t.length>0){let a=t[t.length-1];if(a instanceof Me)return!1;switch(a.getTokenType()){case p.Comma:case p.Semicolon:case p.Colon:case p.RightCurly:case p.LeftBracket:case p.LeftParantheses:case p.Assignment:case p.NotEqual:case p.EqualEqualEqual:case p.NotEqualEqual:case p.Equal:case p.And:case p.Or:case p.SqlAnd:case p.SqlOr:case p.SqlNotEqual:case p.Questionmark:case p.InstanceOf:case p.Lambda:case p.Not:break;default:return!1}}if(e.match("/",!1)){let a=e.getPosition();e.consume(),e.startSpan();let n=!1,i=0,s=0,o=0;for(;e.hasMore();){if(e.match("\\",!0)){e.consume();continue}if(e.match("[",!1))i++,s=e.getPosition();else if(i>0&&e.match("]",!1))i--;else if(e.match(p.ForwardSlash.literal,!0))if(i===0){e.match("g",!0),e.match("i",!0),e.match("m",!0),e.match("s",!0),e.match("u",!0),e.match("y",!0),n=!0;break}else o=e.getPosition();let l=e.consume();if(l==="\r"||l===` -`)return e.reset(a),!1}if(i!==0)throw new ge("Missing ']'",e.getSpan(s,o-1));if(!n)return e.reset(a),!1;let r=e.endSpan();return r=e.getSpan(r.getStart()-1,r.getEnd()),t.push(new Me(p.RegexpLiteral,r)),!0}return!1},la=(e,t,a)=>{if(e.match(t,!0)){e.startSpan();let n=!1;for(;e.hasMore();){if(e.match("\\",!0)){e.consume();continue}if(e.match(t.literal,!0)){n=!0;break}let s=e.consume();if(t!==p.TripleQuote&&(s==="\r"||s===` -`))throw new ge(t.error+t.error+"\u5B9A\u4E49\u7684\u5B57\u7B26\u4E32\u4E0D\u80FD\u6362\u884C",e.endSpan())}if(!n)throw new ge("\u5B57\u7B26\u4E32\u6CA1\u6709\u7ED3\u675F\u7B26"+t.error,e.endSpan());let i=e.endSpan();return i=e.getSpan(i.getStart(),i.getEnd()-t.literal.length),a.push(new Me(p.StringLiteral,i)),!0}return!1},en=(e,t)=>{let a=Number.parseInt(e.getText().substring(2).replace(/\_/g,""),t);return a>2147483647||a<-2147483648?new Me(p.LongLiteral,e,a):a>127||a<-128?new Me(p.LongLiteral,e,a):new Me(p.ByteLiteral,e,a)},Ls=(e,t)=>{if(e.match("0",!1)){let a=e.getPosition();if(e.startSpan(),e.consume(),e.matchAny(["x","X"],!0)){for(;e.matchDigit(!0)||e.matchAny(["A","B","C","D","E","F","a","b","c","d","e","f","_"],!0););if(e.matchAny(["L","l"],!0)){let n=e.endSpan(),i=n.getText();return t.push(new Me(p.LongLiteral,n,parseInt(i.substring(2,i.length-1).replace(/\_/g,""),16))),!0}return t.push(en(e.endSpan(),16)),!0}else if(e.matchAny(["b","B"],!0)){for(;e.matchAny(["0","1","_"],!0););if(e.matchAny(["L","l"],!0)){let n=e.endSpan(),i=n.getText();return t.push(new Me(p.LongLiteral,n,parseInt(i.substring(2,i.length-1).replace(/\_/g,""),2))),!0}return t.push(en(e.endSpan(),2)),!0}e.reset(a)}if(e.matchDigit(!1)){let a=p.IntegerLiteral;for(e.startSpan();e.matchDigit(!0)||e.match("_",!0););if(e.match(p.Period.literal,!0))if(e.hasMore())for(a=p.DoubleLiteral;e.matchDigit(!0)||e.match("_",!0););else e.reset(e.getPosition()-1);if(e.matchAny(["b","B"],!0)){if(a===p.DoubleLiteral)throw new ge("Byte literal can not have a decimal point.",e.endSpan());a=p.ByteLiteral}else if(e.matchAny(["s","S"],!0)){if(a===p.DoubleLiteral)throw new ge("Short literal can not have a decimal point.",e.endSpan());a=p.ShortLiteral}else if(e.matchAny(["l","L"],!0)){if(a===p.DoubleLiteral)throw new ge("Long literal can not have a decimal point.",e.endSpan());a=p.LongLiteral}else e.matchAny(["f","F"],!0)?a=p.FloatLiteral:e.matchAny(["d","D"],!0)?a=p.DoubleLiteral:e.matchAny(["m","M"],!0)&&(a=p.DecimalLiteral);return t.push(new Me(a,e.endSpan())),!0}return!1},Ns=(e,t)=>{if(e.match("```",!0))if(e.startSpan(),e.matchIdentifierStart(!0)){for(;e.matchIdentifierPart(!0););let a=e.endSpan();if(t.push(new Ve(p.Language,a)),e.startSpan(),!e.skipUntil("```"))throw new ge("```\u9700\u8981\u4EE5```\u7ED3\u5C3E",e.endSpan());return t.push(new Ve(p.Language,e.endSpan(-3))),!0}else throw new ge("```\u540E\u9700\u8981\u6807\u8BC6\u8BED\u8A00\u7C7B\u578B",e.endSpan());return!1},ws=(e,t)=>{if(e.matchIdentifierStart(!0)){for(e.startSpan();e.matchIdentifierPart(!0););let a=e.endSpan();return a=e.getSpan(a.getStart()-1,a.getEnd()),a.getText()==="true"||a.getText()==="false"?t.push(new Me(p.BooleanLiteral,a)):a.getText()==="null"?t.push(new Me(p.NullLiteral,a)):p.SqlAnd.literal.toUpperCase()===a.getText().toUpperCase()?t.push(new Ve(p.SqlAnd,a)):p.SqlOr.literal.toUpperCase()===a.getText().toUpperCase()?t.push(new Ve(p.SqlOr,a)):t.push(new Ve(p.Identifier,a)),!0}return!1},Ds=(e,t)=>{if(e.match("`",!0)){let a=e.getPosition(),n=a,i=[];for(;e.hasMore();){if(e.match("\\",!0)){e.consume();continue}if(e.match("`",!0))break;if(e.match("${",!0)){let r=e.getPosition();n0&&i.push(new Me(p.StringLiteral,e.endSpan(n,o))),s=e.getSpan(s.getStart()-1,s.getEnd()),t.push(new Me(p.StringLiteral,s,new _t(i))),!0}return!1},Ln=(e,t,a)=>{let n=0,i=0;for(;e.hasMore();){if(e.skipWhiteSpace(),a&&e.match(a,!0))return t;if(e.match("//",!0)){e.skipLine();continue}if(e.match("/*",!0)){e.skipUntil("*/");continue}if(Ls(e,t)||la(e,p.SingleQuote,t)||la(e,p.TripleQuote,t)||la(e,p.DoubleQuote,t)||ks(e,t)||Ns(e,t)||Ds(e,t)||ws(e,t))continue;if(e.matchAny(["=>","->"],!0)){t.push(new Ve(p.Lambda,e.getSpan(e.getPosition()-2,e.getPosition())));continue}let s=!1,o=p.getSortedValues();for(let r=0,l=o.length;rLn(new Is(e,0,e.length),[]);class he{constructor(t){this.span=t}getSpan(){return this.span}async getJavaType(t){return await this.getExpressionsJavaType(t),"java.lang.Object"}async getExpressionsJavaType(t){for(const a of this.expressions().filter(n=>n))await a.getJavaType(t)}expressions(){return[]}toString(){return this.span.getText()}}class xt extends he{constructor(t){super(t)}}class Le extends xt{constructor(t,a,n){super(t),this.javaType=a,this.expressionList=n||[]}expressions(){return this.expressionList}async getJavaType(){return this.javaType}getValue(){return this.getSpan().getText().replace(/\\\\/g,"\\").replace(/\\n/g,` -`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\"/g,'"').replace(/\\'/g,"'")}}class Zt extends he{constructor(t,a,n){super(t),this.target=a,this.args=n}expressions(){return[this.target,...this.args]}getMethod(){return this.target}getArguments(){return this.args}async getJavaType(t){let a=this.target.member.getText(),n=await this.target.getJavaType(t),i=ae.findMethods(n);if(i)for(let s=0,o=i.length;sn.name===this.target.variable);if(a)return a.returnType}return await this.target.getJavaType(t)}}class nt extends he{constructor(t,a,n,i,s){super(t),this.target=a,this.optional=n,this.member=i,this.whole=s}isWhole(){return this.whole===!0}expressions(){return[this.target]}getTarget(){return this.target}async getJavaType(t){let a=await this.target.getJavaType(t),n=await ae.loadClass(a),i=n==null?void 0:n.attributes;const s=this.member.getText();if(i){const l=i.find(u=>u.name===s);if(l)return ae.getWrapperClass(l.type)}let o=n==null?void 0:n.enums;if(o){const l=o.find(u=>u.name===s);if(l)return ae.getWrapperClass(l.type)}let r=n==null?void 0:n.methods;if(r)for(let l=0,u=r.length;l=0&&!a;i--)a=ae.findClass(n[i]+this.variable)}return a||"java.lang.Object"}}class Xt extends he{constructor(t,a,n){super(t),this.target=a,this.keyOrIndex=n}async getJavaType(t){return await this.target.getJavaType(t)==="db"?"db":super.getJavaType(t)}}class tn extends he{constructor(t,a,n,i,s){super(t),this.condition=a,this.trueBlock=n||[],this.elseIfs=i||[],this.falseBlock=s||[]}expressions(){return[this.condition,...this.trueBlock,...this.elseIfs,...this.falseBlock]}}class an extends Le{constructor(t){super(t)}}class ca extends he{constructor(t,a,n){super(t),this.parameters=a,this.childNodes=n}expressions(){return[...this.childNodes]}async getJavaType(t){if(Array.isArray(this.childNodes)&&this.childNodes.length>0){for(let a=0,n=this.childNodes.length;a=0&&!a;i--)a=ae.findClass(n[i]+this.identifier)}return a||"java.lang.Object"}}class Bs extends he{constructor(t,a){super(t),this.expression=a}expressions(){return[this.expression]}async getJavaType(t){return"java.util.concurrent.Future"}}class Ta extends he{constructor(t,a,n){super(new Q(t.getSpan(),a.getSpan())),this.operand=a,this.operator=t,this.atAfter=n}async getJavaType(t){return await this.operand.getJavaType(t)}}class Hs extends he{constructor(t,a,n,i,s,o){super(t),this.exceptionVarNode=a,this.tryBlock=n,this.tryResources=i,this.catchBlock=s,this.finallyBlock=o}expressions(){return[...this.tryBlock,...this.tryResources,...this.catchBlock,...this.finallyBlock]}}class Vs extends he{constructor(t,a,n,i,s){super(t),this.indexOrKey=a,this.value=n,this.mapOrArray=i,this.body=s}expressions(){return[this.mapOrArray,...this.body]}}class js extends he{constructor(t,a,n){super(t),this.condition=a,this.trueBlock=n}expressions(){return[this.condition,...this.trueBlock]}}class Gs extends he{constructor(t,a,n,i){super(t),this.packageName=a,this.varName=n,this.module=i}async getJavaType(t){if(this.packageName.endsWith(".*"))t["@import"].push(this.packageName.substring(0,this.packageName.length-1));else if(this.module)t[this.packageName]=this.packageName;else if(this.varName)t[this.varName]=this.packageName;else{let a=this.packageName.lastIndexOf(".");a>-1&&(t[this.packageName.substring(a+1)]=this.packageName)}}}class ea extends he{constructor(t,a,n,i){super(t),this.varName=a,this.expression=n,this.defineType=i!=="var"&&i!=="const"&&i!=="let"&&i}getVarName(){return this.varName}expressions(){return this.expression==null?[]:[this.expression]}async getJavaType(t){let a="java.lang.Object";return this.defineType?a=t[this.defineType]||a:this.expression&&(a=await this.expression.getJavaType(t)),t[this.varName]=a,a}}class zs extends ea{constructor(t,a,n,i,s){super(t,null,n,i),this.expression=n,this.tokens=a,this.defineType=i!=="var"&&i!=="const"&&i!=="let"&&i,this.isMapAccess=s}expressions(){return this.expression==null?[]:[this.expression]}async getJavaType(t){let a="java.lang.Object";if(this.defineType)a=t[this.defineType]||a;else if(!this.isMapAccess)return a;for(const n of this.tokens)t[n.getText()]=await new nt(this.span,this.expression,!0,n,!1).getJavaType(t);return a}}class nn extends he{constructor(t,a,n){super(new Q(t.getSpan(),n.getSpan())),this.condition=t,this.trueExpression=a,this.falseExpression=n}expressions(){return[this.condition,this.trueExpression,this.falseExpression]}}class Ys extends he{constructor(t,a){super(t),this.target=a}expressions(){return[this.target]}}class mt extends Le{constructor(t,a,n){super(t,"java.util.LinkedHashMap"),this.keys=a,this.values=n}expressions(){return this.values}}class vt extends Le{constructor(t,a){super(t,"java.util.ArrayList"),this.values=a}expressions(){return this.values}}class qs extends he{constructor(t){super(t)}async getJavaType(){return"java.util.function.Function"}expressions(){return[]}}class sn extends he{constructor(t,a,n,i){super(new Q(t.getSpan(),n.getSpan())),this.left=t,this.right=n,this.operator=a,this.linqLevel=i}getOperator(){return this.operator}setRightOperand(t){this.right=t}getRightOperand(){return this.right}expressions(){return[this.left,this.right]}async getJavaType(t){let a=await this.left.getJavaType(t),n=await this.right.getJavaType(t);return a=a.toLowerCase().substring(a.lastIndexOf(".")+1),n=n.toLowerCase().substring(n.lastIndexOf(".")+1),(this.operator.type===p.Plus||this.operator.type===p.PlusEqual)&&(a==="string"||n==="string")?"java.lang.String":this.operator.type===p.Equal||this.operator.type===p.Assignment&&this.linqLevel>0?"java.lang.Boolean":a==="bigdecimal"||n==="bigdecimal"?"java.math.BigDecimal":a==="double"||n==="double"?"java.lang.Double":a==="float"||n==="float"?"java.lang.Float":a==="long"||n==="long"?"java.lang.Long":a==="integer"||n==="integer"?"java.lang.Integer":a==="short"||n==="short"?"java.lang.Short":a==="byte"||n==="byte"?"java.lang.Byte":"java.lang.Object"}}class Ct extends xt{constructor(t,a,n){super(t),this.expression=a,this.alias=n}expressions(){return[this.expression]}}class Ks extends xt{constructor(t,a,n,i){super(t),this.leftJoin=a,this.target=n,this.condition=i}expressions(){return[this.target,this.condition]}}class Ws extends xt{constructor(t,a,n,i){super(t),this.expression=a,this.alias=n,this.order=i}expressions(){return[this.expression]}}class Nn extends xt{constructor(t,a,n,i){super(t),this.convert=a,this.target=n,this.args=i}expressions(){return[this.target,...this.args]}async getJavaType(){return this.convert=="double"?"java.lang.Double":this.convert=="float"?"java.lang.Float":this.convert=="long"?"java.lang.Long":this.convert=="int"?"java.lang.Integer":this.convert=="short"?"java.lang.Short":this.convert=="byte"?"java.lang.Byte":this.convert=="date"?"java.util.Date":"java.lang.Object"}}class wn extends xt{constructor(t,a,n,i,s,o,r,l,u,d){super(t),this.fields=a,this.from=n,this.joins=i,this.where=s,this.groups=o,this.having=r,this.orders=l,this.limit=u,this.offset=d}expressions(){let t=[];return this.where&&t.push(this.where),this.having&&t.push(this.having),[...this.fields,this.from,...this.joins,...this.groups,...t,...this.orders,this.limit,this.offset]}async getJavaType(){return"java.util.List"}}const na={environmentFunction:()=>{},setEnvironment:e=>na.environmentFunction=e},on=["import","as","var","let","const","return","break","continue","if","for","in","new","true","false","null","else","try","catch","finally","async","while","exit","and","or","throw"],rn=["from","join","left","group","by","as","having","and","or","in","where","on","limit","offset"],Xs=[[p.Assignment],[p.RShift2Equal,p.RShiftEqual,p.LShiftEqual,p.XorEqual,p.BitOrEqual,p.BitAndEqual,p.PercentEqual,p.ForwardSlashEqual,p.AsteriskEqual,p.MinusEqual,p.PlusEqual],[p.Or,p.SqlOr],[p.And,p.SqlAnd],[p.BitOr],[p.Xor],[p.BitAnd],[p.EqualEqualEqual,p.Equal,p.NotEqualEqual,p.NotEqual,p.SqlNotEqual],[p.Less,p.LessEqual,p.Greater,p.GreaterEqual,p.InstanceOf],[p.Plus,p.Minus],[p.LShift,p.RShift,p.RShift2],[p.Asterisk,p.ForwardSlash,p.Percentage]],Js=[[p.RShift2Equal,p.RShiftEqual,p.LShiftEqual,p.XorEqual,p.BitOrEqual,p.BitAndEqual,p.PercentEqual,p.ForwardSlashEqual,p.AsteriskEqual,p.MinusEqual,p.PlusEqual],[p.Or,p.SqlOr],[p.And,p.SqlAnd],[p.BitOr],[p.Xor],[p.BitAnd],[p.Assignment,p.EqualEqualEqual,p.Equal,p.NotEqualEqual,p.Equal,p.NotEqual,p.SqlNotEqual],[p.Less,p.LessEqual,p.Greater,p.GreaterEqual,p.InstanceOf],[p.Plus,p.Minus],[p.LShift,p.RShift,p.RShift2],[p.Asterisk,p.ForwardSlash,p.Percentage]],Qs=[p.MinusMinus,p.PlusPlus,p.BitNot,p.Minus,p.Plus,p.Not];class zt{constructor(t){this.stream=t,this.linqLevel=0}parse(t){let a=[];try{for(;this.stream.hasMore();){let n=this.parseStatement();n!=null&&(this.validateNode(n),a.push(n))}}catch(n){if(t!==!0)throw n}return a}async parseBest(t){let a=this.parse(),n=await this.processEnv(a);return{best:this.findBestMatch(a[a.length-1],t),env:n}}async processEnv(t){let a=t.length,n={...na.environmentFunction(),...ae.getAutoImportClass(),...ae.getAutoImportModule(),"@import":[]};for(let i=0;i-1)throw new ge("\u53D8\u91CF\u540D\u4E0D\u80FD\u5B9A\u4E49\u4E3A\u5173\u952E\u5B57",t)}parseThrow(){let t=this.stream.consume().getSpan(),a=this.parseExpression();return new $s(new Q(t,this.stream.getPrev().getSpan()),a)}parseExit(){let t=this.stream.expect("exit").getSpan(),a=[];do a.push(this.parseExpression());while(this.stream.match(p.Comma,!0));return new Us(new Q(t,this.stream.getPrev().getSpan()),a)}parseAssert(){let t=this.stream.makeIndex();try{let a=this.stream.expect("assert").getSpan(),n=this.parseExpression();this.stream.expect(p.Colon);let i=[];do i.push(this.parseExpression());while(this.stream.match(p.Comma,!0));return new Fs(new Q(a,this.stream.getPrev().getSpan()),n,i)}catch{return this.stream.resetIndex(t),this.parseExpression()}}parseImport(){let t=this.stream.expect("import").getSpan();if(this.stream.hasMore()){let a=this.stream.consume(),n=null,i=a.getTokenType()===p.StringLiteral;if(i)n=this.createStringLiteral(a).getValue();else if(a.type===p.Identifier){let o=a.getSpan(),r=null;for(n=o.getText();this.stream.match(p.Period,!0);){if(i=!0,this.stream.match(p.Asterisk,!1)){a=this.stream.consume();break}a=this.stream.expect(p.Identifier)}i&&(r=a.getSpan(),n=new Q(o,r).getText())}else throw new ge("Expected identifier or string, but got stream is "+a.getTokenType().error,this.stream.getPrev().getSpan());let s=n;if(i)if(this.stream.match("as",!0))a=this.stream.expect(p.Identifier),this.checkKeyword(a.getSpan()),s=a.getSpan().getText();else{let o=n;if(o.startsWith("@"))throw new ge("Expected as",this.stream.getPrev().getSpan());{let r=o.lastIndexOf(".");r!=-1&&(o=o.substring(r+1))}s=o}return new Gs(new Q(t,a.getSpan()),n,s,!i)}throw new ge("Expected identifier or string, but got stream is EOF",this.stream.getPrev().getSpan())}parseReturn(){let t=this.stream.expect("return").getSpan();if(this.stream.match([";","}"],!1))return new Nt(t,null);let a=this.parseExpression();return new Nt(new Q(t,a.getSpan()),a)}parseAsync(){let t=this.stream.expect("async").getSpan(),a=this.parseExpression();return new Bs(new Q(t,this.stream.getPrev().getSpan()),a)}parseIfStatement(){let t=this.stream.expect("if").getSpan(),a=this.parseExpression(),n=this.parseFunctionBody(),i=[],s=[];for(;this.stream.hasMore()&&this.stream.match("else",!0);)if(this.stream.hasMore()&&this.stream.match("if",!1)){let r=this.stream.expect("if").getSpan(),l=this.parseExpression(),u=this.parseFunctionBody(),d=new Q(r,u.length>0?u[u.length-1].getSpan():r);i.push(new tn(d,l,u,[]))}else{s=s.concat(this.parseFunctionBody());break}let o=this.stream.getPrev().getSpan();return new tn(new Q(t,o),a,n,i,s)}parseNewExpression(t){let a=this.parseAccessOrCall(p.Identifier,!0),n=new Q(t.getSource(),t.getStart(),this.stream.getPrev().getSpan().getEnd());return a instanceof Zt?this.parseAccessOrCall(new Pt(n,a.getMethod(),a.getArguments())):a instanceof ya?this.parseAccessOrCall(new Pt(n,a.getFunction(),a.getArguments())):this.parseAccessOrCall(new Pt(n,a,[]))}parseArguments(){this.stream.expect(p.LeftParantheses);let t=[];for(;this.stream.hasMore()&&!this.stream.match(p.RightParantheses,!1);)t.push(this.parseExpression()),this.stream.match(p.RightParantheses,!1)||this.stream.expect(p.Comma);return t}parseForStatement(){let t=this.stream.expect("for").getSpan();this.stream.expect("(");let a=null,n=this.stream.expect(p.Identifier).getSpan();this.checkKeyword(n),this.stream.match(p.Comma,!0)&&(a=n,n=this.stream.expect(p.Identifier).getSpan(),this.checkKeyword(n)),this.stream.expect("in");let i=this.parseExpression();this.stream.expect(")");let s=this.parseFunctionBody();return new Vs(new Q(t,this.stream.getPrev().getSpan()),a&&a.getText(),n&&n.getText(),i,s)}parseVarDefine(){let t=this.stream.consume().getSpan(),a;if((a=this.stream.match(p.LeftCurly,!1))||this.stream.match(p.LeftBracket,!1)){this.stream.expect([p.LeftCurly,p.LeftBracket]);let s=[];do{let o=this.stream.expect(p.Identifier);s.push(o)}while(this.stream.match(p.Comma,!0));return a?this.stream.match(p.RightCurly,!0):this.stream.match(p.RightBracket,!0),this.stream.match(p.Assignment,!0),new zs(new Q(t,this.stream.getPrev().getSpan()),s,this.parseExpression(),t.getText(),a)}let n=this.stream.expect(p.Identifier);this.checkKeyword(n.getSpan());let i;return this.stream.match(p.Assignment,!0)?i=new ea(new Q(t,this.stream.getPrev().getSpan()),n.getText(),this.parseExpression(),t.getText()):i=new ea(new Q(t,this.stream.getPrev().getSpan()),n.getText(),null,t.getText()),i}parseTryStatement(){let t=this.stream.expect("try"),a=[];if(this.stream.match("(",!0)){if(!this.stream.match(")",!1))for(;!this.stream.match(")",!1);){if(this.stream.match(";",!0))continue;let r=null;if(this.matchVarDefine())r=this.parseVarDefine();else{if(this.stream.matchAny(on,!1))throw new ge("try \u62EC\u53F7\u4E2D\u53EA\u5141\u8BB8\u5199\u8D4B\u503C\u8BED\u53E5",this.stream.consume().getSpan());let l=this.stream.makeIndex();if(this.matchTypeDefine()&&(this.stream.resetIndex(l),r=this.parseVarDefine()),r==null)throw this.stream.resetIndex(l),new ge("try \u62EC\u53F7\u4E2D\u53EA\u5141\u8BB8\u5199\u8D4B\u503C\u8BED\u53E5",this.stream.consume().getSpan())}a.push(r)}this.stream.expect(")")}let n=this.parseFunctionBody(),i=[],s=[],o=null;return this.stream.match("catch",!0)&&(this.stream.match("(",!0)&&(o=this.stream.expect(p.Identifier).getText(),this.stream.expect(")")),i=i.concat(this.parseFunctionBody())),this.stream.match("finally",!0)&&(s=s.concat(this.parseFunctionBody())),new Hs(new Q(t.getSpan(),this.stream.getPrev().getSpan()),o,n,a,i,s)}parseWhileStatement(){let t=this.stream.expect("while").getSpan(),a=this.parseExpression(),n=this.parseFunctionBody(),i=this.stream.getPrev().getSpan();return new js(new Q(t,i),a,n)}parseFunctionBody(){this.stream.expect("{");let t=[];for(;this.stream.hasMore()&&!this.stream.match("}",!1);){let a=this.parseStatement(!0);a!=null&&(this.validateNode(a),t.push(a))}return this.expectCloseing(),t}expectCloseing(){return this.stream.hasMore(),this.stream.expect("}").getSpan()}parseExpression(t){return this.parseTernaryOperator(t)}parseTernaryOperator(t){let a=this.parseBinaryOperator(0,t);if(this.stream.match(p.Questionmark,!0)){let n=this.parseTernaryOperator(t);this.stream.expect(p.Colon);let i=this.parseTernaryOperator(t);return a instanceof sn&&a.getOperator()===p.Assignment?(a.setRightOperand(new nn(a.getRightOperand(),n,i)),a):new nn(a,n,i)}else return a}parseBinaryOperator(t,a){let n=t+1,i=this.linqLevel>0?Js:Xs,s=n===i.length?this.parseUnaryOperator(a):this.parseBinaryOperator(n,a),o=i[t];for(;this.stream.hasMore()&&this.stream.match(o,!1);){let r=this.stream.consume();if(r.type.inLinq&&this.linqLevel===0)throw new ge(r.getText()+" \u53EA\u80FD\u5728Linq\u4E2D\u4F7F\u7528",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());let l=n===i.length?this.parseUnaryOperator(a):this.parseBinaryOperator(n,a);s=new sn(s,r,l,this.linqLevel)}return s}parseUnaryOperator(t){if(this.stream.match(Qs,!1))return new Ta(this.stream.consume(),this.parseUnaryOperator(t));if(this.stream.match(p.LeftParantheses,!1)){let a=this.stream.expect(p.LeftParantheses).getSpan(),n=this.stream.makeIndex(),i=[];for(;this.stream.match(p.Identifier,!1);){let o=this.stream.expect(p.Identifier);if(i.push(o.getSpan().getText()),!this.stream.match(p.Comma,!0)&&this.stream.match(p.RightParantheses,!0)){if(this.stream.match(p.Lambda,!0))return this.parseLambdaBody(a,i);break}}if(this.stream.match(p.RightParantheses,!0)&&this.stream.match(p.Lambda,!0))return this.parseLambdaBody(a,i);this.stream.resetIndex(n);let s=this.parseExpression();return this.stream.expect(p.RightParantheses),this.parseAccessOrCall(s)}else{let a=this.parseAccessOrCallOrLiteral(t);return(a instanceof nt||a instanceof Ke||a instanceof Xt)&&this.stream.match([p.PlusPlus,p.MinusMinus],!1)?new Ta(this.stream.consume(),a):a}}parseLambdaBody(t,a){let n=this.stream.makeIndex(),i=[];try{let s=this.parseExpression();return i.push(new Nt(new Q("return",0,6),s)),new ca(new Q(t,s.getSpan()),a,i)}catch{if(this.stream.resetIndex(n),this.stream.match(p.LeftCurly,!0)){for(;this.stream.hasMore()&&!this.stream.match("}",!1);){let r=this.parseStatement(!0);this.validateNode(r),i.push(r)}let o=this.expectCloseing();return new ca(new Q(t,o),a,i)}else{let o=this.parseStatement();return i.push(new Nt(new Q("return",0,6),o)),new ca(new Q(t,o.getSpan()),a,i)}}}parseSpreadAccess(t){t||(t=this.stream.expect(p.Spread));let a=this.parseExpression();return new Ys(new Q(t.getSpan(),a.getSpan()),a)}parseAccessOrCall(t,a){if(t===p.StringLiteral||t===p.Identifier){let n=this.stream.expect(t),i=n.getSpan();if(t===p.Identifier&&i.getText()==="new")return this.parseNewExpression(i);if(t===p.Identifier&&this.stream.match(p.Lambda,!0))return this.parseLambdaBody(i,[i.getText()]);let s=t===p.StringLiteral?this.createStringLiteral(n):new Ke(i,i.getText());return this.parseAccessOrCall(s,a)}else{for(;this.stream.hasMore()&&this.stream.match([p.LeftParantheses,p.LeftBracket,p.Period,p.QuestionPeriod,p.ColonColon],!1);)if(this.stream.match(p.ColonColon,!1)){let n=this.stream.consume().getSpan(),i=[],s=this.stream.expect(p.Identifier),o=s.getSpan();this.stream.match(p.LeftParantheses,!1)&&(i=this.parseArguments(),o=this.stream.expect(p.RightParantheses).getSpan()),t=new Nn(new Q(n,o),s.getText(),t,i)}else if(this.stream.match(p.LeftParantheses,!1)){let n=this.parseArguments(),i=this.stream.expect(p.RightParantheses).getSpan();if(t instanceof Ke||t instanceof Xt)t=new ya(new Q(t.getSpan(),i),t,n,this.linqLevel>0);else if(t instanceof nt)t=new Zt(new Q(t.getSpan(),i),t,n,this.linqLevel>0);else throw new ge("Expected a variable, field or method.",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());if(a)break}else if(this.stream.match(p.LeftBracket,!0)){let n=this.parseExpression(),i=this.stream.expect(p.RightBracket).getSpan();t=new Xt(new Q(t.getSpan(),i),t,n)}else if(this.stream.match([p.Period,p.QuestionPeriod],!1)){let n=this.stream.consume().getTokenType()===p.QuestionPeriod;if(this.linqLevel>0&&this.stream.match(p.Asterisk,!1))t=new nt(t.getSpan(),n,this.stream.expect(p.Asterisk).getSpan(),!0);else{let i=this.stream.expect([p.Identifier,p.SqlAnd,p.SqlOr]).getSpan();t=new nt(new Q(t.getSpan(),i),t,n,i,!1)}}return t}}parseMapLiteral(){let t=this.stream.expect(p.LeftCurly).getSpan(),a=[],n=[];for(;this.stream.hasMore()&&!this.stream.match("}",!1);){let s;if(this.stream.hasPrev()){let o=this.stream.getPrev();if(this.stream.match(p.Spread,!1)&&(o.getTokenType()===p.LeftCurly||o.getTokenType()===p.Comma)){let r=this.stream.expect(p.Spread);a.push(r),n.push(this.parseSpreadAccess(r)),this.stream.match([p.Comma,p.RightCurly],!1)&&this.stream.match(p.Comma,!0);continue}}this.stream.match(p.StringLiteral,!1)?s=this.stream.expect(p.StringLiteral):this.stream.match(p.LeftBracket,!0)?(s=this.parseExpression(),this.stream.expect(p.RightBracket)):s=this.stream.expect(p.Identifier),a.push(s),this.stream.match([p.Comma,p.RightCurly],!1)?(this.stream.match(p.Comma,!0),s instanceof Ke?n.push(s):s.getTokenType()===p.Identifier?n.push(new Ke(s.getSpan(),s.getText())):n.push(new Le(s.getSpan(),"java.lang.String"))):(this.stream.expect(":"),n.push(this.parseExpression()),this.stream.match("}",!1)||this.stream.expect(p.Comma))}let i=this.stream.expect("}").getSpan();return new mt(new Q(t,i),a,n)}parseListLiteral(){let t=this.stream.expect(p.LeftBracket).getSpan(),a=[];for(;this.stream.hasMore()&&!this.stream.match(p.RightBracket,!1);)a.push(this.parseExpression()),this.stream.match(p.RightBracket,!1)||this.stream.expect(p.Comma);let n=this.stream.expect(p.RightBracket).getSpan();return new vt(new Q(t,n),a)}parseSelect(){let t=this.stream.expect("select",!0).getSpan();this.linqLevel++;let a=this.parseLinqFields();this.stream.expect("from",!0);let n=this.parseLinqField(),i=this.parseLinqJoins(),s;this.stream.match("where",!0,!0)&&(s=this.parseExpression());let o=this.parseGroup(),r;this.stream.match("having",!0,!0)&&(r=this.parseExpression());let l=this.parseLinqOrders();this.linqLevel--;let u,d;this.stream.match("limit",!0,!0)&&(u=this.parseExpression(),this.stream.match("offset",!0,!0)&&(d=this.parseExpression()));let g=this.stream.getPrev().getSpan();return new wn(new Q(t,g),a,n,i,s,o,r,l,u,d)}parseGroup(){let t=[];if(this.stream.match("group",!0,!0)){this.stream.expect("by",!0);do{let a=this.parseExpression();t.push(new Ct(a.getSpan(),a,null))}while(this.stream.match(p.Comma,!0))}return t}parseLinqOrders(){let t=[];if(this.stream.match("order",!0,!0)){this.stream.expect("by",!0);do{let a=this.parseExpression(),n=1;this.stream.match(["desc","asc"],!1,!0)&&this.stream.consume().getText()==="desc"&&(n=-1),t.push(new Ws(new Q(a.getSpan(),this.stream.getPrev().getSpan()),a,null,n))}while(this.stream.match(p.Comma,!0))}return t}parseLinqField(){let t=this.parseExpression();if(this.stream.match(p.Identifier,!1)&&!this.stream.match(rn,!1,!0)){let a=this.stream.expect(p.Identifier).getSpan();return new Ct(new Q(t.getSpan(),a),t,a.getText())}return new Ct(t.getSpan(),t,null)}parseLinqFields(){let t=[];do{let a=this.parseExpression();if(this.stream.match(p.Identifier,!1)&&!this.stream.match(rn,!1,!0)){if(a instanceof an)throw new ge("* \u540E\u8FB9\u4E0D\u80FD\u8DDF\u522B\u540D",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());if(a instanceof nt&&a.isWhole())throw new ge(a.getSpan().getText()+" \u540E\u8FB9\u4E0D\u80FD\u8DDF\u522B\u540D",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());let n=this.stream.consume().getSpan();t.push(new Ct(new Q(a.getSpan(),n),a,n.getText()))}else t.push(new Ct(a.getSpan(),a,null))}while(this.stream.match(p.Comma,!0));if(t.length===0)throw new ge("\u81F3\u5C11\u8981\u67E5\u8BE2\u4E00\u4E2A\u5B57\u6BB5",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());return t}parseLinqJoins(){let t=[];do{let a=this.stream.match("left",!1),n=a?this.stream.consume().getSpan():null;if(this.stream.match("join",!0)){n=a?n:this.stream.getPrev().getSpan();let i=this.parseLinqField();this.stream.expect("on");let s=this.parseExpression();t.push(new Ks(new Q(n,this.stream.getPrev().getSpan()),a,i,s))}}while(this.stream.match(["left","join"],!1));return t}parseAccessOrCallOrLiteral(t){let a;if(t&&this.stream.match("}",!1))return null;if(this.stream.match(p.Spread,!1))a=this.parseSpreadAccess();else if(this.stream.match(p.Identifier,!1))this.stream.match("async",!1)?a=this.parseAsync():this.stream.match("select",!1,!0)?a=this.parseSelect():a=this.parseAccessOrCall(p.Identifier);else if(this.stream.match(p.LeftCurly,!1))a=this.parseMapLiteral();else if(this.stream.match(p.LeftBracket,!1))a=this.parseListLiteral();else if(this.stream.match(p.StringLiteral,!1))a=this.createStringLiteral(this.stream.expect(p.StringLiteral));else if(this.stream.match(p.BooleanLiteral,!1))a=new Le(this.stream.expect(p.BooleanLiteral).getSpan(),"java.lang.Boolean");else if(this.stream.match(p.DoubleLiteral,!1))a=new Le(this.stream.expect(p.DoubleLiteral).getSpan(),"java.lang.Double");else if(this.stream.match(p.FloatLiteral,!1))a=new Le(this.stream.expect(p.FloatLiteral).getSpan(),"java.lang.Float");else if(this.stream.match(p.ByteLiteral,!1))a=new Le(this.stream.expect(p.ByteLiteral).getSpan(),"java.lang.Byte");else if(this.stream.match(p.ShortLiteral,!1))a=new Le(this.stream.expect(p.ShortLiteral).getSpan(),"java.lang.Short");else if(this.stream.match(p.IntegerLiteral,!1))a=new Le(this.stream.expect(p.IntegerLiteral).getSpan(),"java.lang.Integer");else if(this.stream.match(p.LongLiteral,!1))a=new Le(this.stream.expect(p.LongLiteral).getSpan(),"java.lang.Long");else if(this.stream.match(p.DecimalLiteral,!1))a=new Le(this.stream.expect(p.DecimalLiteral).getSpan(),"java.math.BigDecimal");else if(this.stream.match(p.RegexpLiteral,!1)){let n=this.stream.expect(p.RegexpLiteral);a=new Le(n.getSpan(),"java.util.regex.Pattern")}else this.stream.match(p.NullLiteral,!1)?a=new Le(this.stream.expect(p.NullLiteral).getSpan(),"null"):this.linqLevel>0&&this.stream.match(p.Asterisk,!1)?a=new an(this.stream.expect(p.Asterisk).getSpan()):this.stream.match(p.Language,!1)&&(a=new qs(this.stream.consume().getSpan(),this.stream.consume().getSpan()));if(a==null)throw new ge("Expected a variable, field, map, array, function or method call, or literal.",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());return this.parseAccessOrCall(a)}createStringLiteral(t){if(t.getTokenStream()==null)return new Le(t.getSpan(),"java.lang.String");let a=this.stream;this.stream=t.getTokenStream();let n=[];for(;this.stream.hasMore();)n.push(this.parseExpression());return this.stream=a,new Le(t.getSpan(),"java.lang.String",n)}findBestMatch(t,a){let n=t.expressions().filter(i=>i);for(let i in n){let s=this.findBestMatch(n[i],a);if(s)return s}return t.getSpan().inPosition(a)?t:null}}const Sa=e=>{var a;const t={};return(a=e==null?void 0:e.children)==null||a.forEach(n=>t[n.name]=n),t};function xa(e,t){var i;let a=[],n={name:"",value:"",dataType:"",required:!1,validateType:"",expression:"",error:"",description:"",defaultValue:null,children:[]};if(e instanceof mt)e.keys.forEach((s,o)=>{var d,g,f,E,m,L;const r=s.span.getText().replace(/['"]/g,"");let l=e.values[o],u={...n,description:((d=t[r])==null?void 0:d.description)||"",required:((g=t[r])==null?void 0:g.required)===!0,validateType:((f=t[r])==null?void 0:f.validateType)||"",expression:((E=t[r])==null?void 0:E.expression)||"",error:((m=t[r])==null?void 0:m.error)||"",name:r,defaultValue:(L=t[r])==null?void 0:L.defaultValue,value:ln(l)?l.span.getText().trim():"",dataType:Oa(l)};(l instanceof mt||l instanceof vt)&&(u.children=xa(l,Sa(t[r]))),a.push(u)});else if(e instanceof vt&&e.values[0]){let s=e.values[0],o={...n,value:ln(s)?s.span.getText().trim():"",dataType:((i=t[""])==null?void 0:i.dataType)||Oa(s)};(s instanceof mt||s instanceof vt)&&(o.children=xa(s,Sa(t[""]))),a.push(o)}return a}function ln(e){return!(e instanceof mt||e instanceof vt)}function Oa(e){if(e instanceof mt)return"Object";if(e instanceof vt)return"Array";e instanceof Ta&&(e=e.operand);let t=e.javaType.substring(e.javaType.lastIndexOf(".")+1);return t==="Integer"&&Number(e.span.getText())>2147483647||Number(e.span.getText())<-2147483648?"Long":t==="null"?"Object":t}function Dn(e,t){t=t||{};try{JSON.parse(e);let n=new zt(new _t(Gt(e))).parseExpression();return{name:"",value:"",dataType:t.dataType||Oa(n),required:t.required,validateType:t.validateType||"",expression:t.expression||"",error:t.error||"",description:t.description||"",defaultValue:t.defaultValue,children:xa(n,Sa(t))}}catch{}}const cn=(e,t,a,n)=>{let i=-1,s=ae.getImportClass();if(a!==0&&t&&(i=s.length)>0){t=t.toLowerCase(),ae.getDefineModules().filter(r=>r.toLowerCase().indexOf(t)>-1).forEach(r=>e.push({label:r,filterText:r,kind:W.CompletionItemKind.Module,detail:r,insertText:r,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet}));let o=new Set;for(let r=0;r-1){let d=l.substring(l.lastIndexOf(".")+1);if(u===0){let g=l.substring(t.length),f=g;if(g.startsWith("."))f=t+".",g=t.substring(t.lastIndexOf(".")+1)+".";else{if(g.indexOf(".")===-1){e.push({sortText:`2${d}`,label:d,kind:W.CompletionItemKind.Class,filterText:l,detail:l,insertText:d,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet});continue}let E=g.substring(0,g.indexOf(".")+1);f=t+E,g=t.substring(t.lastIndexOf(".")+1)+E}if(o.has(g))continue;o.add(g),e.push({sortText:`1${g}`,label:g,kind:W.CompletionItemKind.Folder,filterText:l,detail:f.replace(/\.$/,""),insertText:g,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet,command:{id:"editor.action.triggerSuggest"}})}else d.toLowerCase().indexOf(t)>-1&&e.push({sortText:`2${d}`,label:d,kind:W.CompletionItemKind.Class,filterText:d,detail:l,insertText:l,range:new st(n.lineNumber,a+1,n.lineNumber,n.column)})}}}else ae.getDefineModules().forEach(o=>e.push({label:o,filterText:o,kind:W.CompletionItemKind.Module,detail:o,insertText:o,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet}))},Zs=(e,t,a,n)=>{let i=a.indexOf('"')+1;if(i===0&&(i=a.indexOf("'")+1),i===0){a=a.trim().replace("import","").trim(),cn(e,a,n+1,t);return}let s=a.substring(n).trim().replace(/['|"]/g,"");if(s.startsWith("@")){if(s.indexOf(" ")>-1)return;let o=ae.getApiFinder();(o&&o()||[]).forEach(r=>{let l="@"+r.method+":"+r.path;e.push({sortText:l,label:l,kind:W.CompletionItemKind.Reference,filterText:l,detail:r.name,insertText:l,range:new st(t.lineNumber,i+1,t.lineNumber,t.column)})}),o=ae.getFunctionFinder(),(o&&o()||[]).forEach(r=>{let l="@"+r.path;e.push({sortText:l,label:l,kind:W.CompletionItemKind.Reference,filterText:l,detail:r.name,insertText:l,range:new st(t.lineNumber,i+1,t.lineNumber,t.column)})});return}cn(e,s,i,t)},wt=async(e,t,a,n,i)=>{if(a=a||{},n&&n instanceof Ke&&await n.getJavaType(a)==="java.lang.Object"){let u=ae.getImportClass();const d=n.variable;u.forEach(g=>{let f=g.substring(g.lastIndexOf(".")+1);f.indexOf(d)>-1&&e.push({sortText:`${f}`,label:f,kind:W.CompletionItemKind.Class,filterText:f,detail:g,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet,command:{id:"editor.action.appendHead",arguments:[`import ${g}\r -`]},insertText:f+(i?"()":"")})})}ae.findFunction().forEach(u=>{e.push({sortText:u.sortText||u.fullName,label:u.fullName,filterText:u.name,kind:W.CompletionItemKind.Method,detail:u.comment,insertText:u.insertText,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet})});let s=e.map(u=>u.detail),o=t.match(/[a-zA-Z_$]+/ig)||[],r=o.length,l=Object.keys(a);l.forEach(u=>{e.push({label:u,filterText:u,kind:W.CompletionItemKind.Variable,detail:a[u],insertText:u,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet})}),r>2&&Array.from(new Set(o)).filter((u,d)=>d+2{e.push({label:u,filterText:u,kind:W.CompletionItemKind.Text,detail:u,insertText:u,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet})})},un=async(e,t)=>{let a=await ae.loadClass(e),n=e.lastIndexOf("."),i=n>0?e.substring(n+1):e,s=ae.findEnums(a);if(s)for(let l=0;l0&&this.tokens[this.end-1]}hasMore(){return this.index=this.end)return!1;let i=!1;if(Array.isArray(t)){for(let s=0,o=t.length;sa.push(this.textToString(n))),a.join(",")}else return t.error}expect(t,a){if(this.match(t,!0,a))return this.tokens[this.index-1];if(this.hasMore()){let n=this.tokens[this.index];throw t instanceof je&&(t=t.type.error),new ge("Expected '"+this.textToString(t)+"', but got '"+n.getText()+"'",n.getSpan())}else{let n=this.tokens[this.index-1].getSpan();return new je(p.Unknown,n)}}hasPrev(){return this.index>0}getSource(){return this.tokens.length===0?null:this.tokens[0].getSpan().getSource()}}const As=(e,t)=>{if(t.length>0){let a=t[t.length-1];if(a instanceof Me)return!1;switch(a.getTokenType()){case p.Comma:case p.Semicolon:case p.Colon:case p.RightCurly:case p.LeftBracket:case p.LeftParantheses:case p.Assignment:case p.NotEqual:case p.EqualEqualEqual:case p.NotEqualEqual:case p.Equal:case p.And:case p.Or:case p.SqlAnd:case p.SqlOr:case p.SqlNotEqual:case p.Questionmark:case p.InstanceOf:case p.Lambda:case p.Not:break;default:return!1}}if(e.match("/",!1)){let a=e.getPosition();e.consume(),e.startSpan();let n=!1,i=0,s=0,o=0;for(;e.hasMore();){if(e.match("\\",!0)){e.consume();continue}if(e.match("[",!1))i++,s=e.getPosition();else if(i>0&&e.match("]",!1))i--;else if(e.match(p.ForwardSlash.literal,!0))if(i===0){e.match("g",!0),e.match("i",!0),e.match("m",!0),e.match("s",!0),e.match("u",!0),e.match("y",!0),n=!0;break}else o=e.getPosition();let l=e.consume();if(l==="\r"||l===` +`)return e.reset(a),!1}if(i!==0)throw new ge("Missing ']'",e.getSpan(s,o-1));if(!n)return e.reset(a),!1;let r=e.endSpan();return r=e.getSpan(r.getStart()-1,r.getEnd()),t.push(new Me(p.RegexpLiteral,r)),!0}return!1},oa=(e,t,a)=>{if(e.match(t,!0)){e.startSpan();let n=!1;for(;e.hasMore();){if(e.match("\\",!0)){e.consume();continue}if(e.match(t.literal,!0)){n=!0;break}let s=e.consume();if(t!==p.TripleQuote&&(s==="\r"||s===` +`))throw new ge(t.error+t.error+"\u5B9A\u4E49\u7684\u5B57\u7B26\u4E32\u4E0D\u80FD\u6362\u884C",e.endSpan())}if(!n)throw new ge("\u5B57\u7B26\u4E32\u6CA1\u6709\u7ED3\u675F\u7B26"+t.error,e.endSpan());let i=e.endSpan();return i=e.getSpan(i.getStart(),i.getEnd()-t.literal.length),a.push(new Me(p.StringLiteral,i)),!0}return!1},Ja=(e,t)=>{let a=Number.parseInt(e.getText().substring(2).replace(/\_/g,""),t);return a>2147483647||a<-2147483648?new Me(p.LongLiteral,e,a):a>127||a<-128?new Me(p.IntegerLiteral,e,a):new Me(p.ByteLiteral,e,a)},Cs=(e,t)=>{if(e.match("0",!1)){let a=e.getPosition();if(e.startSpan(),e.consume(),e.matchAny(["x","X"],!0)){for(;e.matchDigit(!0)||e.matchAny(["A","B","C","D","E","F","a","b","c","d","e","f","_"],!0););if(e.matchAny(["L","l"],!0)){let n=e.endSpan(),i=n.getText();return t.push(new Me(p.LongLiteral,n,parseInt(i.substring(2,i.length-1).replace(/\_/g,""),16))),!0}return t.push(Ja(e.endSpan(),16)),!0}else if(e.matchAny(["b","B"],!0)){for(;e.matchAny(["0","1","_"],!0););if(e.matchAny(["L","l"],!0)){let n=e.endSpan(),i=n.getText();return t.push(new Me(p.LongLiteral,n,parseInt(i.substring(2,i.length-1).replace(/\_/g,""),2))),!0}return t.push(Ja(e.endSpan(),2)),!0}e.reset(a)}if(e.matchDigit(!1)){let a=p.IntegerLiteral;for(e.startSpan();e.matchDigit(!0)||e.match("_",!0););if(e.match(p.Period.literal,!0))if(e.hasMore())for(a=p.DoubleLiteral;e.matchDigit(!0)||e.match("_",!0););else e.reset(e.getPosition()-1);if(e.matchAny(["b","B"],!0)){if(a===p.DoubleLiteral)throw new ge("Byte literal can not have a decimal point.",e.endSpan());a=p.ByteLiteral}else if(e.matchAny(["s","S"],!0)){if(a===p.DoubleLiteral)throw new ge("Short literal can not have a decimal point.",e.endSpan());a=p.ShortLiteral}else if(e.matchAny(["l","L"],!0)){if(a===p.DoubleLiteral)throw new ge("Long literal can not have a decimal point.",e.endSpan());a=p.LongLiteral}else e.matchAny(["f","F"],!0)?a=p.FloatLiteral:e.matchAny(["d","D"],!0)?a=p.DoubleLiteral:e.matchAny(["m","M"],!0)&&(a=p.DecimalLiteral);return t.push(new Me(a,e.endSpan())),!0}return!1},Is=(e,t)=>{if(e.match("```",!0))if(e.startSpan(),e.matchIdentifierStart(!0)){for(;e.matchIdentifierPart(!0););let a=e.endSpan();if(t.push(new je(p.Language,a)),e.startSpan(),!e.skipUntil("```"))throw new ge("```\u9700\u8981\u4EE5```\u7ED3\u5C3E",e.endSpan());return t.push(new je(p.Language,e.endSpan(-3))),!0}else throw new ge("```\u540E\u9700\u8981\u6807\u8BC6\u8BED\u8A00\u7C7B\u578B",e.endSpan());return!1},ks=(e,t)=>{if(e.matchIdentifierStart(!0)){for(e.startSpan();e.matchIdentifierPart(!0););let a=e.endSpan();return a=e.getSpan(a.getStart()-1,a.getEnd()),a.getText()==="true"||a.getText()==="false"?t.push(new Me(p.BooleanLiteral,a)):a.getText()==="null"?t.push(new Me(p.NullLiteral,a)):p.SqlAnd.literal.toUpperCase()===a.getText().toUpperCase()?t.push(new je(p.SqlAnd,a)):p.SqlOr.literal.toUpperCase()===a.getText().toUpperCase()?t.push(new je(p.SqlOr,a)):t.push(new je(p.Identifier,a)),!0}return!1},Ls=(e,t)=>{if(e.match("`",!0)){let a=e.getPosition(),n=a,i=[];for(;e.hasMore();){if(e.match("\\",!0)){e.consume();continue}if(e.match("`",!0))break;if(e.match("${",!0)){let r=e.getPosition();n0&&i.push(new Me(p.StringLiteral,e.endSpan(n,o))),s=e.getSpan(s.getStart()-1,s.getEnd()),t.push(new Me(p.StringLiteral,s,new yt(i))),!0}return!1},In=(e,t,a)=>{let n=0,i=0;for(;e.hasMore();){if(e.skipWhiteSpace(),a&&e.match(a,!0))return t;if(e.match("//",!0)){e.skipLine();continue}if(e.match("/*",!0)){e.skipUntil("*/");continue}if(Cs(e,t)||oa(e,p.SingleQuote,t)||oa(e,p.TripleQuote,t)||oa(e,p.DoubleQuote,t)||As(e,t)||Is(e,t)||Ls(e,t)||ks(e,t))continue;if(e.matchAny(["=>","->"],!0)){t.push(new je(p.Lambda,e.getSpan(e.getPosition()-2,e.getPosition())));continue}let s=!1,o=p.getSortedValues();for(let r=0,l=o.length;rIn(new Rs(e,0,e.length),[]);class he{constructor(t){this.span=t}getSpan(){return this.span}async getJavaType(t){return await this.getExpressionsJavaType(t),"java.lang.Object"}async getExpressionsJavaType(t){for(const a of this.expressions().filter(n=>n))await a.getJavaType(t)}expressions(){return[]}toString(){return this.span.getText()}}class Tt extends he{constructor(t){super(t)}}class Le extends Tt{constructor(t,a,n){super(t),this.javaType=a,this.expressionList=n||[]}expressions(){return this.expressionList}async getJavaType(){return this.javaType}getValue(){return this.getSpan().getText().replace(/\\\\/g,"\\").replace(/\\n/g,` +`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\"/g,'"').replace(/\\'/g,"'")}}class Wt extends he{constructor(t,a,n){super(t),this.target=a,this.args=n}expressions(){return[this.target,...this.args]}getMethod(){return this.target}getArguments(){return this.args}async getJavaType(t){let a=this.target.member.getText(),n=await this.target.getJavaType(t),i=ae.findMethods(n);if(i)for(let s=0,o=i.length;sn.name===this.target.variable);if(a)return a.returnType}return await this.target.getJavaType(t)}}class nt extends he{constructor(t,a,n,i,s){super(t),this.target=a,this.optional=n,this.member=i,this.whole=s}isWhole(){return this.whole===!0}expressions(){return[this.target]}getTarget(){return this.target}async getJavaType(t){let a=await this.target.getJavaType(t),n=await ae.loadClass(a),i=n==null?void 0:n.attributes;const s=this.member.getText();if(i){const l=i.find(u=>u.name===s);if(l)return ae.getWrapperClass(l.type)}let o=n==null?void 0:n.enums;if(o){const l=o.find(u=>u.name===s);if(l)return ae.getWrapperClass(l.type)}let r=n==null?void 0:n.methods;if(r)for(let l=0,u=r.length;l=0&&!a;i--)a=ae.findClass(n[i]+this.variable)}return a||"java.lang.Object"}}class Yt extends he{constructor(t,a,n){super(t),this.target=a,this.keyOrIndex=n}async getJavaType(t){return await this.target.getJavaType(t)==="db"?"db":super.getJavaType(t)}}class Qa extends he{constructor(t,a,n,i,s){super(t),this.condition=a,this.trueBlock=n||[],this.elseIfs=i||[],this.falseBlock=s||[]}expressions(){return[this.condition,...this.trueBlock,...this.elseIfs,...this.falseBlock]}}class Za extends Le{constructor(t){super(t)}}class ra extends he{constructor(t,a,n){super(t),this.parameters=a,this.childNodes=n}expressions(){return[...this.childNodes]}async getJavaType(t){if(Array.isArray(this.childNodes)&&this.childNodes.length>0){for(let a=0,n=this.childNodes.length;a=0&&!a;i--)a=ae.findClass(n[i]+this.identifier)}return a||"java.lang.Object"}}class Us extends he{constructor(t,a){super(t),this.expression=a}expressions(){return[this.expression]}async getJavaType(t){return"java.util.concurrent.Future"}}class en extends he{constructor(t,a,n){super(new Q(t.getSpan(),a.getSpan())),this.operand=a,this.operator=t,this.atAfter=n}async getJavaType(t){return await this.operand.getJavaType(t)}}class $s extends he{constructor(t,a,n,i,s,o){super(t),this.exceptionVarNode=a,this.tryBlock=n,this.tryResources=i,this.catchBlock=s,this.finallyBlock=o}expressions(){return[...this.tryBlock,...this.tryResources,...this.catchBlock,...this.finallyBlock]}}class Fs extends he{constructor(t,a,n,i,s){super(t),this.indexOrKey=a,this.value=n,this.mapOrArray=i,this.body=s}expressions(){return[this.mapOrArray,...this.body]}}class Bs extends he{constructor(t,a,n){super(t),this.condition=a,this.trueBlock=n}expressions(){return[this.condition,...this.trueBlock]}}class Hs extends he{constructor(t,a,n,i){super(t),this.packageName=a,this.varName=n,this.module=i}async getJavaType(t){if(this.packageName.endsWith(".*"))t["@import"].push(this.packageName.substring(0,this.packageName.length-1));else if(this.module)t[this.packageName]=this.packageName;else if(this.varName)t[this.varName]=this.packageName;else{let a=this.packageName.lastIndexOf(".");a>-1&&(t[this.packageName.substring(a+1)]=this.packageName)}}}class Xt extends he{constructor(t,a,n,i){super(t),this.varName=a,this.expression=n,this.defineType=i!=="var"&&i!=="const"&&i!=="let"&&i}getVarName(){return this.varName}expressions(){return this.expression==null?[]:[this.expression]}async getJavaType(t){let a="java.lang.Object";return this.defineType?a=t[this.defineType]||a:this.expression&&(a=await this.expression.getJavaType(t)),t[this.varName]=a,a}}class js extends Xt{constructor(t,a,n,i,s){super(t,null,n,i),this.expression=n,this.tokens=a,this.defineType=i!=="var"&&i!=="const"&&i!=="let"&&i,this.isMapAccess=s}expressions(){return this.expression==null?[]:[this.expression]}async getJavaType(t){let a="java.lang.Object";if(this.defineType)a=t[this.defineType]||a;else if(!this.isMapAccess)return a;for(const n of this.tokens)t[n.getText()]=await new nt(this.span,this.expression,!0,n,!1).getJavaType(t);return a}}class tn extends he{constructor(t,a,n){super(new Q(t.getSpan(),n.getSpan())),this.condition=t,this.trueExpression=a,this.falseExpression=n}expressions(){return[this.condition,this.trueExpression,this.falseExpression]}}class Vs extends he{constructor(t,a){super(t),this.target=a}expressions(){return[this.target]}}class Gs extends Le{constructor(t,a,n){super(t,"java.util.LinkedHashMap"),this.keys=a,this.values=n}expressions(){return this.values}}class zs extends Le{constructor(t,a){super(t,"java.util.ArrayList"),this.values=a}expressions(){return this.values}}class Ys extends he{constructor(t){super(t)}async getJavaType(){return"java.util.function.Function"}expressions(){return[]}}class an extends he{constructor(t,a,n,i){super(new Q(t.getSpan(),n.getSpan())),this.left=t,this.right=n,this.operator=a,this.linqLevel=i}getOperator(){return this.operator}setRightOperand(t){this.right=t}getRightOperand(){return this.right}expressions(){return[this.left,this.right]}async getJavaType(t){let a=await this.left.getJavaType(t),n=await this.right.getJavaType(t);return a=a.toLowerCase().substring(a.lastIndexOf(".")+1),n=n.toLowerCase().substring(n.lastIndexOf(".")+1),(this.operator.type===p.Plus||this.operator.type===p.PlusEqual)&&(a==="string"||n==="string")?"java.lang.String":this.operator.type===p.Equal||this.operator.type===p.Assignment&&this.linqLevel>0?"java.lang.Boolean":a==="bigdecimal"||n==="bigdecimal"?"java.math.BigDecimal":a==="double"||n==="double"?"java.lang.Double":a==="float"||n==="float"?"java.lang.Float":a==="long"||n==="long"?"java.lang.Long":a==="integer"||n==="integer"?"java.lang.Integer":a==="short"||n==="short"?"java.lang.Short":a==="byte"||n==="byte"?"java.lang.Byte":"java.lang.Object"}}class Rt extends Tt{constructor(t,a,n){super(t),this.expression=a,this.alias=n}expressions(){return[this.expression]}}class qs extends Tt{constructor(t,a,n,i){super(t),this.leftJoin=a,this.target=n,this.condition=i}expressions(){return[this.target,this.condition]}}class Ks extends Tt{constructor(t,a,n,i){super(t),this.expression=a,this.alias=n,this.order=i}expressions(){return[this.expression]}}class kn extends Tt{constructor(t,a,n,i){super(t),this.convert=a,this.target=n,this.args=i}expressions(){return[this.target,...this.args]}async getJavaType(){return this.convert=="double"?"java.lang.Double":this.convert=="float"?"java.lang.Float":this.convert=="long"?"java.lang.Long":this.convert=="int"?"java.lang.Integer":this.convert=="short"?"java.lang.Short":this.convert=="byte"?"java.lang.Byte":this.convert=="date"?"java.util.Date":"java.lang.Object"}}class Ln extends Tt{constructor(t,a,n,i,s,o,r,l,u,d){super(t),this.fields=a,this.from=n,this.joins=i,this.where=s,this.groups=o,this.having=r,this.orders=l,this.limit=u,this.offset=d}expressions(){let t=[];return this.where&&t.push(this.where),this.having&&t.push(this.having),[...this.fields,this.from,...this.joins,...this.groups,...t,...this.orders,this.limit,this.offset]}async getJavaType(){return"java.util.List"}}const ea={environmentFunction:()=>{},setEnvironment:e=>ea.environmentFunction=e},nn=["import","as","var","let","const","return","break","continue","if","for","in","new","true","false","null","else","try","catch","finally","async","while","exit","and","or","throw"],sn=["from","join","left","group","by","as","having","and","or","in","where","on","limit","offset"],Ws=[[p.Assignment],[p.RShift2Equal,p.RShiftEqual,p.LShiftEqual,p.XorEqual,p.BitOrEqual,p.BitAndEqual,p.PercentEqual,p.ForwardSlashEqual,p.AsteriskEqual,p.MinusEqual,p.PlusEqual],[p.Or,p.SqlOr],[p.And,p.SqlAnd],[p.BitOr],[p.Xor],[p.BitAnd],[p.EqualEqualEqual,p.Equal,p.NotEqualEqual,p.NotEqual,p.SqlNotEqual],[p.Less,p.LessEqual,p.Greater,p.GreaterEqual,p.InstanceOf],[p.Plus,p.Minus],[p.LShift,p.RShift,p.RShift2],[p.Asterisk,p.ForwardSlash,p.Percentage]],Xs=[[p.RShift2Equal,p.RShiftEqual,p.LShiftEqual,p.XorEqual,p.BitOrEqual,p.BitAndEqual,p.PercentEqual,p.ForwardSlashEqual,p.AsteriskEqual,p.MinusEqual,p.PlusEqual],[p.Or,p.SqlOr],[p.And,p.SqlAnd],[p.BitOr],[p.Xor],[p.BitAnd],[p.Assignment,p.EqualEqualEqual,p.Equal,p.NotEqualEqual,p.Equal,p.NotEqual,p.SqlNotEqual],[p.Less,p.LessEqual,p.Greater,p.GreaterEqual,p.InstanceOf],[p.Plus,p.Minus],[p.LShift,p.RShift,p.RShift2],[p.Asterisk,p.ForwardSlash,p.Percentage]],Js=[p.MinusMinus,p.PlusPlus,p.BitNot,p.Minus,p.Plus,p.Not];class ta{constructor(t){this.stream=t,this.linqLevel=0}parse(t){let a=[];try{for(;this.stream.hasMore();){let n=this.parseStatement();n!=null&&(this.validateNode(n),a.push(n))}}catch(n){if(t!==!0)throw n}return a}async parseBest(t){let a=this.parse(),n=await this.processEnv(a);return{best:this.findBestMatch(a[a.length-1],t),env:n}}async processEnv(t){let a=t.length,n={...ea.environmentFunction(),...ae.getAutoImportClass(),...ae.getAutoImportModule(),"@import":[]};for(let i=0;i-1)throw new ge("\u53D8\u91CF\u540D\u4E0D\u80FD\u5B9A\u4E49\u4E3A\u5173\u952E\u5B57",t)}parseThrow(){let t=this.stream.consume().getSpan(),a=this.parseExpression();return new Ms(new Q(t,this.stream.getPrev().getSpan()),a)}parseExit(){let t=this.stream.expect("exit").getSpan(),a=[];do a.push(this.parseExpression());while(this.stream.match(p.Comma,!0));return new Ds(new Q(t,this.stream.getPrev().getSpan()),a)}parseAssert(){let t=this.stream.makeIndex();try{let a=this.stream.expect("assert").getSpan(),n=this.parseExpression();this.stream.expect(p.Colon);let i=[];do i.push(this.parseExpression());while(this.stream.match(p.Comma,!0));return new Ps(new Q(a,this.stream.getPrev().getSpan()),n,i)}catch{return this.stream.resetIndex(t),this.parseExpression()}}parseImport(){let t=this.stream.expect("import").getSpan();if(this.stream.hasMore()){let a=this.stream.consume(),n=null,i=a.getTokenType()===p.StringLiteral;if(i)n=this.createStringLiteral(a).getValue();else if(a.type===p.Identifier){let o=a.getSpan(),r=null;for(n=o.getText();this.stream.match(p.Period,!0);){if(i=!0,this.stream.match(p.Asterisk,!1)){a=this.stream.consume();break}a=this.stream.expect(p.Identifier)}i&&(r=a.getSpan(),n=new Q(o,r).getText())}else throw new ge("Expected identifier or string, but got stream is "+a.getTokenType().error,this.stream.getPrev().getSpan());let s=n;if(i)if(this.stream.match("as",!0))a=this.stream.expect(p.Identifier),this.checkKeyword(a.getSpan()),s=a.getSpan().getText();else{let o=n;if(o.startsWith("@"))throw new ge("Expected as",this.stream.getPrev().getSpan());{let r=o.lastIndexOf(".");r!=-1&&(o=o.substring(r+1))}s=o}return new Hs(new Q(t,a.getSpan()),n,s,!i)}throw new ge("Expected identifier or string, but got stream is EOF",this.stream.getPrev().getSpan())}parseReturn(){let t=this.stream.expect("return").getSpan();if(this.stream.match([";","}"],!1))return new kt(t,null);let a=this.parseExpression();return new kt(new Q(t,a.getSpan()),a)}parseAsync(){let t=this.stream.expect("async").getSpan(),a=this.parseExpression();return new Us(new Q(t,this.stream.getPrev().getSpan()),a)}parseIfStatement(){let t=this.stream.expect("if").getSpan(),a=this.parseExpression(),n=this.parseFunctionBody(),i=[],s=[];for(;this.stream.hasMore()&&this.stream.match("else",!0);)if(this.stream.hasMore()&&this.stream.match("if",!1)){let r=this.stream.expect("if").getSpan(),l=this.parseExpression(),u=this.parseFunctionBody(),d=new Q(r,u.length>0?u[u.length-1].getSpan():r);i.push(new Qa(d,l,u,[]))}else{s=s.concat(this.parseFunctionBody());break}let o=this.stream.getPrev().getSpan();return new Qa(new Q(t,o),a,n,i,s)}parseNewExpression(t){let a=this.parseAccessOrCall(p.Identifier,!0),n=new Q(t.getSource(),t.getStart(),this.stream.getPrev().getSpan().getEnd());return a instanceof Wt?this.parseAccessOrCall(new Dt(n,a.getMethod(),a.getArguments())):a instanceof ba?this.parseAccessOrCall(new Dt(n,a.getFunction(),a.getArguments())):this.parseAccessOrCall(new Dt(n,a,[]))}parseArguments(){this.stream.expect(p.LeftParantheses);let t=[];for(;this.stream.hasMore()&&!this.stream.match(p.RightParantheses,!1);)t.push(this.parseExpression()),this.stream.match(p.RightParantheses,!1)||this.stream.expect(p.Comma);return t}parseForStatement(){let t=this.stream.expect("for").getSpan();this.stream.expect("(");let a=null,n=this.stream.expect(p.Identifier).getSpan();this.checkKeyword(n),this.stream.match(p.Comma,!0)&&(a=n,n=this.stream.expect(p.Identifier).getSpan(),this.checkKeyword(n)),this.stream.expect("in");let i=this.parseExpression();this.stream.expect(")");let s=this.parseFunctionBody();return new Fs(new Q(t,this.stream.getPrev().getSpan()),a&&a.getText(),n&&n.getText(),i,s)}parseVarDefine(){let t=this.stream.consume().getSpan(),a;if((a=this.stream.match(p.LeftCurly,!1))||this.stream.match(p.LeftBracket,!1)){this.stream.expect([p.LeftCurly,p.LeftBracket]);let s=[];do{let o=this.stream.expect(p.Identifier);s.push(o)}while(this.stream.match(p.Comma,!0));return a?this.stream.match(p.RightCurly,!0):this.stream.match(p.RightBracket,!0),this.stream.match(p.Assignment,!0),new js(new Q(t,this.stream.getPrev().getSpan()),s,this.parseExpression(),t.getText(),a)}let n=this.stream.expect(p.Identifier);this.checkKeyword(n.getSpan());let i;return this.stream.match(p.Assignment,!0)?i=new Xt(new Q(t,this.stream.getPrev().getSpan()),n.getText(),this.parseExpression(),t.getText()):i=new Xt(new Q(t,this.stream.getPrev().getSpan()),n.getText(),null,t.getText()),i}parseTryStatement(){let t=this.stream.expect("try"),a=[];if(this.stream.match("(",!0)){if(!this.stream.match(")",!1))for(;!this.stream.match(")",!1);){if(this.stream.match(";",!0))continue;let r=null;if(this.matchVarDefine())r=this.parseVarDefine();else{if(this.stream.matchAny(nn,!1))throw new ge("try \u62EC\u53F7\u4E2D\u53EA\u5141\u8BB8\u5199\u8D4B\u503C\u8BED\u53E5",this.stream.consume().getSpan());let l=this.stream.makeIndex();if(this.matchTypeDefine()&&(this.stream.resetIndex(l),r=this.parseVarDefine()),r==null)throw this.stream.resetIndex(l),new ge("try \u62EC\u53F7\u4E2D\u53EA\u5141\u8BB8\u5199\u8D4B\u503C\u8BED\u53E5",this.stream.consume().getSpan())}a.push(r)}this.stream.expect(")")}let n=this.parseFunctionBody(),i=[],s=[],o=null;return this.stream.match("catch",!0)&&(this.stream.match("(",!0)&&(o=this.stream.expect(p.Identifier).getText(),this.stream.expect(")")),i=i.concat(this.parseFunctionBody())),this.stream.match("finally",!0)&&(s=s.concat(this.parseFunctionBody())),new $s(new Q(t.getSpan(),this.stream.getPrev().getSpan()),o,n,a,i,s)}parseWhileStatement(){let t=this.stream.expect("while").getSpan(),a=this.parseExpression(),n=this.parseFunctionBody(),i=this.stream.getPrev().getSpan();return new Bs(new Q(t,i),a,n)}parseFunctionBody(){this.stream.expect("{");let t=[];for(;this.stream.hasMore()&&!this.stream.match("}",!1);){let a=this.parseStatement(!0);a!=null&&(this.validateNode(a),t.push(a))}return this.expectCloseing(),t}expectCloseing(){return this.stream.hasMore(),this.stream.expect("}").getSpan()}parseExpression(t){return this.parseTernaryOperator(t)}parseTernaryOperator(t){let a=this.parseBinaryOperator(0,t);if(this.stream.match(p.Questionmark,!0)){let n=this.parseTernaryOperator(t);this.stream.expect(p.Colon);let i=this.parseTernaryOperator(t);return a instanceof an&&a.getOperator()===p.Assignment?(a.setRightOperand(new tn(a.getRightOperand(),n,i)),a):new tn(a,n,i)}else return a}parseBinaryOperator(t,a){let n=t+1,i=this.linqLevel>0?Xs:Ws,s=n===i.length?this.parseUnaryOperator(a):this.parseBinaryOperator(n,a),o=i[t];for(;this.stream.hasMore()&&this.stream.match(o,!1);){let r=this.stream.consume();if(r.type.inLinq&&this.linqLevel===0)throw new ge(r.getText()+" \u53EA\u80FD\u5728Linq\u4E2D\u4F7F\u7528",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());let l=n===i.length?this.parseUnaryOperator(a):this.parseBinaryOperator(n,a);s=new an(s,r,l,this.linqLevel)}return s}parseUnaryOperator(t){if(this.stream.match(Js,!1))return new en(this.stream.consume(),this.parseUnaryOperator(t));if(this.stream.match(p.LeftParantheses,!1)){let a=this.stream.expect(p.LeftParantheses).getSpan(),n=this.stream.makeIndex(),i=[];for(;this.stream.match(p.Identifier,!1);){let o=this.stream.expect(p.Identifier);if(i.push(o.getSpan().getText()),!this.stream.match(p.Comma,!0)&&this.stream.match(p.RightParantheses,!0)){if(this.stream.match(p.Lambda,!0))return this.parseLambdaBody(a,i);break}}if(this.stream.match(p.RightParantheses,!0)&&this.stream.match(p.Lambda,!0))return this.parseLambdaBody(a,i);this.stream.resetIndex(n);let s=this.parseExpression();return this.stream.expect(p.RightParantheses),this.parseAccessOrCall(s)}else{let a=this.parseAccessOrCallOrLiteral(t);return(a instanceof nt||a instanceof Ke||a instanceof Yt)&&this.stream.match([p.PlusPlus,p.MinusMinus],!1)?new en(this.stream.consume(),a):a}}parseLambdaBody(t,a){let n=this.stream.makeIndex(),i=[];try{let s=this.parseExpression();return i.push(new kt(new Q("return",0,6),s)),new ra(new Q(t,s.getSpan()),a,i)}catch{if(this.stream.resetIndex(n),this.stream.match(p.LeftCurly,!0)){for(;this.stream.hasMore()&&!this.stream.match("}",!1);){let r=this.parseStatement(!0);this.validateNode(r),i.push(r)}let o=this.expectCloseing();return new ra(new Q(t,o),a,i)}else{let o=this.parseStatement();return i.push(new kt(new Q("return",0,6),o)),new ra(new Q(t,o.getSpan()),a,i)}}}parseSpreadAccess(t){t||(t=this.stream.expect(p.Spread));let a=this.parseExpression();return new Vs(new Q(t.getSpan(),a.getSpan()),a)}parseAccessOrCall(t,a){if(t===p.StringLiteral||t===p.Identifier){let n=this.stream.expect(t),i=n.getSpan();if(t===p.Identifier&&i.getText()==="new")return this.parseNewExpression(i);if(t===p.Identifier&&this.stream.match(p.Lambda,!0))return this.parseLambdaBody(i,[i.getText()]);let s=t===p.StringLiteral?this.createStringLiteral(n):new Ke(i,i.getText());return this.parseAccessOrCall(s,a)}else{for(;this.stream.hasMore()&&this.stream.match([p.LeftParantheses,p.LeftBracket,p.Period,p.QuestionPeriod,p.ColonColon],!1);)if(this.stream.match(p.ColonColon,!1)){let n=this.stream.consume().getSpan(),i=[],s=this.stream.expect(p.Identifier),o=s.getSpan();this.stream.match(p.LeftParantheses,!1)&&(i=this.parseArguments(),o=this.stream.expect(p.RightParantheses).getSpan()),t=new kn(new Q(n,o),s.getText(),t,i)}else if(this.stream.match(p.LeftParantheses,!1)){let n=this.parseArguments(),i=this.stream.expect(p.RightParantheses).getSpan();if(t instanceof Ke||t instanceof Yt)t=new ba(new Q(t.getSpan(),i),t,n,this.linqLevel>0);else if(t instanceof nt)t=new Wt(new Q(t.getSpan(),i),t,n,this.linqLevel>0);else throw new ge("Expected a variable, field or method.",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());if(a)break}else if(this.stream.match(p.LeftBracket,!0)){let n=this.parseExpression(),i=this.stream.expect(p.RightBracket).getSpan();t=new Yt(new Q(t.getSpan(),i),t,n)}else if(this.stream.match([p.Period,p.QuestionPeriod],!1)){let n=this.stream.consume().getTokenType()===p.QuestionPeriod;if(this.linqLevel>0&&this.stream.match(p.Asterisk,!1))t=new nt(t.getSpan(),n,this.stream.expect(p.Asterisk).getSpan(),!0);else{let i=this.stream.expect([p.Identifier,p.SqlAnd,p.SqlOr]).getSpan();t=new nt(new Q(t.getSpan(),i),t,n,i,!1)}}return t}}parseMapLiteral(){let t=this.stream.expect(p.LeftCurly).getSpan(),a=[],n=[];for(;this.stream.hasMore()&&!this.stream.match("}",!1);){let s;if(this.stream.hasPrev()){let o=this.stream.getPrev();if(this.stream.match(p.Spread,!1)&&(o.getTokenType()===p.LeftCurly||o.getTokenType()===p.Comma)){let r=this.stream.expect(p.Spread);a.push(r),n.push(this.parseSpreadAccess(r)),this.stream.match([p.Comma,p.RightCurly],!1)&&this.stream.match(p.Comma,!0);continue}}this.stream.match(p.StringLiteral,!1)?s=this.stream.expect(p.StringLiteral):this.stream.match(p.LeftBracket,!0)?(s=this.parseExpression(),this.stream.expect(p.RightBracket)):s=this.stream.expect(p.Identifier),a.push(s),this.stream.match([p.Comma,p.RightCurly],!1)?(this.stream.match(p.Comma,!0),s instanceof Ke?n.push(s):s.getTokenType()===p.Identifier?n.push(new Ke(s.getSpan(),s.getText())):n.push(new Le(s.getSpan(),"java.lang.String"))):(this.stream.expect(":"),n.push(this.parseExpression()),this.stream.match("}",!1)||this.stream.expect(p.Comma))}let i=this.stream.expect("}").getSpan();return new Gs(new Q(t,i),a,n)}parseListLiteral(){let t=this.stream.expect(p.LeftBracket).getSpan(),a=[];for(;this.stream.hasMore()&&!this.stream.match(p.RightBracket,!1);)a.push(this.parseExpression()),this.stream.match(p.RightBracket,!1)||this.stream.expect(p.Comma);let n=this.stream.expect(p.RightBracket).getSpan();return new zs(new Q(t,n),a)}parseSelect(){let t=this.stream.expect("select",!0).getSpan();this.linqLevel++;let a=this.parseLinqFields();this.stream.expect("from",!0);let n=this.parseLinqField(),i=this.parseLinqJoins(),s;this.stream.match("where",!0,!0)&&(s=this.parseExpression());let o=this.parseGroup(),r;this.stream.match("having",!0,!0)&&(r=this.parseExpression());let l=this.parseLinqOrders();this.linqLevel--;let u,d;this.stream.match("limit",!0,!0)&&(u=this.parseExpression(),this.stream.match("offset",!0,!0)&&(d=this.parseExpression()));let g=this.stream.getPrev().getSpan();return new Ln(new Q(t,g),a,n,i,s,o,r,l,u,d)}parseGroup(){let t=[];if(this.stream.match("group",!0,!0)){this.stream.expect("by",!0);do{let a=this.parseExpression();t.push(new Rt(a.getSpan(),a,null))}while(this.stream.match(p.Comma,!0))}return t}parseLinqOrders(){let t=[];if(this.stream.match("order",!0,!0)){this.stream.expect("by",!0);do{let a=this.parseExpression(),n=1;this.stream.match(["desc","asc"],!1,!0)&&this.stream.consume().getText()==="desc"&&(n=-1),t.push(new Ks(new Q(a.getSpan(),this.stream.getPrev().getSpan()),a,null,n))}while(this.stream.match(p.Comma,!0))}return t}parseLinqField(){let t=this.parseExpression();if(this.stream.match(p.Identifier,!1)&&!this.stream.match(sn,!1,!0)){let a=this.stream.expect(p.Identifier).getSpan();return new Rt(new Q(t.getSpan(),a),t,a.getText())}return new Rt(t.getSpan(),t,null)}parseLinqFields(){let t=[];do{let a=this.parseExpression();if(this.stream.match(p.Identifier,!1)&&!this.stream.match(sn,!1,!0)){if(a instanceof Za)throw new ge("* \u540E\u8FB9\u4E0D\u80FD\u8DDF\u522B\u540D",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());if(a instanceof nt&&a.isWhole())throw new ge(a.getSpan().getText()+" \u540E\u8FB9\u4E0D\u80FD\u8DDF\u522B\u540D",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());let n=this.stream.consume().getSpan();t.push(new Rt(new Q(a.getSpan(),n),a,n.getText()))}else t.push(new Rt(a.getSpan(),a,null))}while(this.stream.match(p.Comma,!0));if(t.length===0)throw new ge("\u81F3\u5C11\u8981\u67E5\u8BE2\u4E00\u4E2A\u5B57\u6BB5",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());return t}parseLinqJoins(){let t=[];do{let a=this.stream.match("left",!1),n=a?this.stream.consume().getSpan():null;if(this.stream.match("join",!0)){n=a?n:this.stream.getPrev().getSpan();let i=this.parseLinqField();this.stream.expect("on");let s=this.parseExpression();t.push(new qs(new Q(n,this.stream.getPrev().getSpan()),a,i,s))}}while(this.stream.match(["left","join"],!1));return t}parseAccessOrCallOrLiteral(t){let a;if(t&&this.stream.match("}",!1))return null;if(this.stream.match(p.Spread,!1))a=this.parseSpreadAccess();else if(this.stream.match(p.Identifier,!1))this.stream.match("async",!1)?a=this.parseAsync():this.stream.match("select",!1,!0)?a=this.parseSelect():a=this.parseAccessOrCall(p.Identifier);else if(this.stream.match(p.LeftCurly,!1))a=this.parseMapLiteral();else if(this.stream.match(p.LeftBracket,!1))a=this.parseListLiteral();else if(this.stream.match(p.StringLiteral,!1))a=this.createStringLiteral(this.stream.expect(p.StringLiteral));else if(this.stream.match(p.BooleanLiteral,!1))a=new Le(this.stream.expect(p.BooleanLiteral).getSpan(),"java.lang.Boolean");else if(this.stream.match(p.DoubleLiteral,!1))a=new Le(this.stream.expect(p.DoubleLiteral).getSpan(),"java.lang.Double");else if(this.stream.match(p.FloatLiteral,!1))a=new Le(this.stream.expect(p.FloatLiteral).getSpan(),"java.lang.Float");else if(this.stream.match(p.ByteLiteral,!1))a=new Le(this.stream.expect(p.ByteLiteral).getSpan(),"java.lang.Byte");else if(this.stream.match(p.ShortLiteral,!1))a=new Le(this.stream.expect(p.ShortLiteral).getSpan(),"java.lang.Short");else if(this.stream.match(p.IntegerLiteral,!1))a=new Le(this.stream.expect(p.IntegerLiteral).getSpan(),"java.lang.Integer");else if(this.stream.match(p.LongLiteral,!1))a=new Le(this.stream.expect(p.LongLiteral).getSpan(),"java.lang.Long");else if(this.stream.match(p.DecimalLiteral,!1))a=new Le(this.stream.expect(p.DecimalLiteral).getSpan(),"java.math.BigDecimal");else if(this.stream.match(p.RegexpLiteral,!1)){let n=this.stream.expect(p.RegexpLiteral);a=new Le(n.getSpan(),"java.util.regex.Pattern")}else this.stream.match(p.NullLiteral,!1)?a=new Le(this.stream.expect(p.NullLiteral).getSpan(),"null"):this.linqLevel>0&&this.stream.match(p.Asterisk,!1)?a=new Za(this.stream.expect(p.Asterisk).getSpan()):this.stream.match(p.Language,!1)&&(a=new Ys(this.stream.consume().getSpan(),this.stream.consume().getSpan()));if(a==null)throw new ge("Expected a variable, field, map, array, function or method call, or literal.",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());return this.parseAccessOrCall(a)}createStringLiteral(t){if(t.getTokenStream()==null)return new Le(t.getSpan(),"java.lang.String");let a=this.stream;this.stream=t.getTokenStream();let n=[];for(;this.stream.hasMore();)n.push(this.parseExpression());return this.stream=a,new Le(t.getSpan(),"java.lang.String",n)}findBestMatch(t,a){let n=t.expressions().filter(i=>i);for(let i in n){let s=this.findBestMatch(n[i],a);if(s)return s}return t.getSpan().inPosition(a)?t:null}}const Ea=e=>{var a;const t={};return(a=e==null?void 0:e.children)==null||a.forEach(n=>t[n.name]=n),t};function ya(e,t){var i;let a=[],n={name:"",value:"",dataType:"",required:!1,validateType:"",expression:"",error:"",description:"",defaultValue:null,children:[]};if(Array.isArray(e)){if(e[0]!==void 0){let s=e[0];const o=on(s);let r={...n,value:o?s+"":"",dataType:((i=t[""])==null?void 0:i.dataType)||Ta(s)};o||(r.children=ya(s,Ea(t[""]))),a.push(r)}}else Object.keys(e).forEach(s=>{var u,d,g,f,E,m;const o=e[s],r=on(o);let l={...n,description:((u=t[s])==null?void 0:u.description)||"",required:((d=t[s])==null?void 0:d.required)===!0,validateType:((g=t[s])==null?void 0:g.validateType)||"",expression:((f=t[s])==null?void 0:f.expression)||"",error:((E=t[s])==null?void 0:E.error)||"",name:s,defaultValue:(m=t[s])==null?void 0:m.defaultValue,value:r?o+"":"",dataType:Ta(o)};r||(l.children=ya(o,Ea(t[s]))),a.push(l)});return a}function on(e){return!(e!=null&&typeof e=="object")}function Ta(e){if(Array.isArray(e))return"Array";const t=typeof e;return t==="object"?"Object":t==="number"?e>2147483647||e<-2147483648?"Long":"Integer":t==="boolean"?"Boolean":"String"}function Nn(e,t){t=t||{};try{const a=JSON.parse(e);return{name:"",value:"",dataType:t.dataType||Ta(a),required:t.required,validateType:t.validateType||"",expression:t.expression||"",error:t.error||"",description:t.description||"",defaultValue:t.defaultValue,children:ya(a,Ea(t))}}catch{}}const rn=(e,t,a,n)=>{let i=-1,s=ae.getImportClass();if(a!==0&&t&&(i=s.length)>0){t=t.toLowerCase(),ae.getDefineModules().filter(r=>r.toLowerCase().indexOf(t)>-1).forEach(r=>e.push({label:r,filterText:r,kind:W.CompletionItemKind.Module,detail:r,insertText:r,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet}));let o=new Set;for(let r=0;r-1){let d=l.substring(l.lastIndexOf(".")+1);if(u===0){let g=l.substring(t.length),f=g;if(g.startsWith("."))f=t+".",g=t.substring(t.lastIndexOf(".")+1)+".";else{if(g.indexOf(".")===-1){e.push({sortText:`2${d}`,label:d,kind:W.CompletionItemKind.Class,filterText:l,detail:l,insertText:d,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet});continue}let E=g.substring(0,g.indexOf(".")+1);f=t+E,g=t.substring(t.lastIndexOf(".")+1)+E}if(o.has(g))continue;o.add(g),e.push({sortText:`1${g}`,label:g,kind:W.CompletionItemKind.Folder,filterText:l,detail:f.replace(/\.$/,""),insertText:g,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet,command:{id:"editor.action.triggerSuggest"}})}else d.toLowerCase().indexOf(t)>-1&&e.push({sortText:`2${d}`,label:d,kind:W.CompletionItemKind.Class,filterText:d,detail:l,insertText:l,range:new st(n.lineNumber,a+1,n.lineNumber,n.column)})}}}else ae.getDefineModules().forEach(o=>e.push({label:o,filterText:o,kind:W.CompletionItemKind.Module,detail:o,insertText:o,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet}))},Qs=(e,t,a,n)=>{let i=a.indexOf('"')+1;if(i===0&&(i=a.indexOf("'")+1),i===0){a=a.trim().replace("import","").trim(),rn(e,a,n+1,t);return}let s=a.substring(n).trim().replace(/['|"]/g,"");if(s.startsWith("@")){if(s.indexOf(" ")>-1)return;let o=ae.getApiFinder();(o&&o()||[]).forEach(r=>{let l="@"+r.method+":"+r.path;e.push({sortText:l,label:l,kind:W.CompletionItemKind.Reference,filterText:l,detail:r.name,insertText:l,range:new st(t.lineNumber,i+1,t.lineNumber,t.column)})}),o=ae.getFunctionFinder(),(o&&o()||[]).forEach(r=>{let l="@"+r.path;e.push({sortText:l,label:l,kind:W.CompletionItemKind.Reference,filterText:l,detail:r.name,insertText:l,range:new st(t.lineNumber,i+1,t.lineNumber,t.column)})});return}rn(e,s,i,t)},Lt=async(e,t,a,n,i)=>{if(a=a||{},n&&n instanceof Ke&&await n.getJavaType(a)==="java.lang.Object"){let u=ae.getImportClass();const d=n.variable;u.forEach(g=>{let f=g.substring(g.lastIndexOf(".")+1);f.indexOf(d)>-1&&e.push({sortText:`${f}`,label:f,kind:W.CompletionItemKind.Class,filterText:f,detail:g,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet,command:{id:"editor.action.appendHead",arguments:[`import ${g}\r +`]},insertText:f+(i?"()":"")})})}ae.findFunction().forEach(u=>{e.push({sortText:u.sortText||u.fullName,label:u.fullName,filterText:u.name,kind:W.CompletionItemKind.Method,detail:u.comment,insertText:u.insertText,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet})});let s=e.map(u=>u.detail),o=t.match(/[a-zA-Z_$]+/ig)||[],r=o.length,l=Object.keys(a);l.forEach(u=>{e.push({label:u,filterText:u,kind:W.CompletionItemKind.Variable,detail:a[u],insertText:u,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet})}),r>2&&Array.from(new Set(o)).filter((u,d)=>d+2{e.push({label:u,filterText:u,kind:W.CompletionItemKind.Text,detail:u,insertText:u,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet})})},ln=async(e,t)=>{let a=await ae.loadClass(e),n=e.lastIndexOf("."),i=n>0?e.substring(n+1):e,s=ae.findEnums(a);if(s)for(let l=0;l({label:l[0],kind:W.CompletionItemKind.Struct,detail:l[2]||l[1],insertText:l[1],filterText:l[0],insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet,range:s}));return n.length>1&&n.trim().indexOf("import")===0?(Zs(r,t,n,n.indexOf("import")+6),o=!0):n.endsWith("::")?r=["int","long","date","string","short","byte","float","double","json","stringify","sql"].map(l=>({label:l,detail:`\u8F6C\u6362\u4E3A${l==="stringify"?"json\u5B57\u7B26\u4E32":l==="sql"?"sql\u53C2\u6570\u7C7B\u578B":l}`,insertText:l,kind:W.CompletionItemKind.TypeParameter,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet})):a.length>1?await eo(r,a):await wt(r,a,{...na.environmentFunction(),...ae.getAutoImportClass(),...ae.getAutoImportModule()}),{suggestions:r,incomplete:o}},triggerCharacters:[".",":"]};let Mn=function(e,t){for(var a=0,n=0,i=e.length;n16777215||a>16777215)){var i=this._length;this._startIndexes[i]=t,this._endIndexes[i]=a,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}}toIndentRanges(t){var a=[];if(this._length<=this._foldingRangesLimit){new Uint32Array(this._length),new Uint32Array(this._length);for(var n=this._length-1,i=0;n>=0;n--,i++)a.push({start:this._startIndexes[n],end:this._endIndexes[n]})}else{for(var s=0,o=this._indentOccurrences.length,n=0;nthis._foldingRangesLimit){o=n;break}s+=r}}var l=t.getOptions().tabSize;new Uint32Array(this._foldingRangesLimit),new Uint32Array(this._foldingRangesLimit);for(var n=this._length-1,i=0;n>=0;n--){var u=this._startIndexes[n],d=t.getLineContent(u),g=Mn(d,l);(g{let a=e.getOptions().tabSize,n=new no(5e3),i=[],s=e.getLineCount()+1,o=-1,r=-1,l=[];i.push({indent:-1,endAbove:s,line:s});for(let d=e.getLineCount();d>0;d--){let g=e.getLineContent(d);g.startsWith("import")||g.trim().startsWith("import")?o==-1?o=d:r=d:(r>-1&&o>-1&&l.push({start:r,end:o,kind:W.FoldingRangeKind.Imports}),r=-1,o=-1);let f=Mn(g,a),E=i[i.length-1];if(f!==-1){if(E.indent>f){do i.pop(),E=i[i.length-1];while(E.indent>f);var u=E.endAbove-1;u-d>=1&&n.insertFirst(d,u,f)}E.indent===f?E.endAbove=d:i.push({indent:f,endAbove:d,line:d})}}return r>-1&&o>-1&&l.push({start:r,end:o,kind:W.FoldingRangeKind.Imports}),l.concat(n.toIndentRanges(e))}},so={signatureHelpRetriggerCharacters:["(",","],signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:async(e,t,a,n)=>{if(n.activeSignatureHelp){let s=n.activeSignatureHelp;return s.activeSignature+=1,s.activeSignature===s.signatures.length&&(s.activeSignature=0),{dispose:function(){},value:s}}let i=e.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:t.lineNumber,endColumn:t.column});try{let s=Gt(i),o=new zt(new _t(s));const{best:r,env:l}=await o.parseBest(i.length-1);if(r&&r instanceof Zt){let u=r.target,d=await u.getTarget().getJavaType(l),g=u.member.getText(),f=ae.findMethods(await ae.loadClass(d)),E=[];if(f.filter(m=>m.name===g).forEach(m=>{let L=[];for(let C=m.extension?1:0;C0)return{dispose:function(){},value:{activeParameter:0,activeSignature:0,signatures:E}}}}catch{}}},Ra=(e,t,a)=>{a.push({value:`${e}${t.fullName}`}),t.comment&&a.push({value:`${t.comment}`}),t.parameters.forEach((n,i)=>{(i>0||!t.extension)&&a.push({value:`${n.name}\uFF1A${n.comment||n.type}`})}),a.push({value:`\u8FD4\u56DE\u7C7B\u578B\uFF1A\`${t.returnType}\``})},ua=(e,t,a,n)=>{let i=ae.findFunction().filter(s=>s.name===e);if(i.length>0)Ra("",i[0],a);else{let s=t[e];if(s&&s.indexOf("@")===0){let o=s.substring(1),r=ae.getOnlineFunction(o);if(r){let l=Array.isArray(r.parameter)?r.parameter:JSON.parse(r.parameter||"[]");l.forEach(u=>u.comment=u.description),Ra("",{fullName:e+" "+r.name,comment:r.description||"",parameters:l,returnType:r.returnType},a)}}else a.push({value:`${n?"\u521B\u5EFA\u5BF9\u8C61":"\u8BBF\u95EE\u53D8\u91CF"}\uFF1A${e}`}),a.push({value:`\u7C7B\u578B\uFF1A${s||"unknow"}`})}},oo={provideHover:async(e,t)=>{var u,d,g;let a=e.getValue(),n=Gt(a),i=new _t(n),s=new zt(i),o=s.parse(!0),l=e.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:t.lineNumber,endColumn:t.column}).length;for(let f=0,E=o.length;fM.name===A).forEach(M=>Ra(`${ae.getSimpleClass(b)}.`,M,C)),ae.findEnums(S).filter(M=>M===A).forEach(M=>{C.push({value:`\u8BBF\u95EE\u679A\u4E3E\uFF1A\`${b}.${A}\``})}),ae.findAttributes(S).filter(M=>M.name===A).forEach(M=>{C.push({value:`\u8BBF\u95EE\u5C5E\u6027\uFF1A\`${b}.${A}\``}),M.comment&&C.push({value:`${M.comment}`}),C.push({value:`\u5C5E\u6027\u7C7B\u578B\uFF1A\`${M.type}\``})}),x=m.member.getLine()}else if(m instanceof ya){let b=m.target;ua(b.variable,L,C)}else if(m instanceof Pt){let b=m.identifier;b instanceof Ke&&ua(b,L,C,!0)}else if(m instanceof Xt)C.push({value:"\u8BBF\u95EEMap\u6216\u6570\u7EC4"});else if(m instanceof wn)C.push({value:"linq\u67E5\u8BE2"});else return;return{range:new st(x.lineNumber,x.startCol,x.endLineNumber,x.endCol+1),contents:C}}}}},ro=()=>{const e="mybatis";W.register({id:e}),W.setLanguageConfiguration(e,{comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]}),W.setMonarchTokensProvider(e,{defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT_AFTER_WAIT","ABSENT","ABSOLUTE","ACCENT_SENSITIVITY","ACTION","ACTIVATION","ACTIVE","ADD","ADDRESS","ADMIN","AES","AES_128","AES_192","AES_256","AFFINITY","AFTER","AGGREGATE","ALGORITHM","ALL_CONSTRAINTS","ALL_ERRORMSGS","ALL_INDEXES","ALL_LEVELS","ALL_SPARSE_COLUMNS","ALLOW_CONNECTIONS","ALLOW_MULTIPLE_EVENT_LOSS","ALLOW_PAGE_LOCKS","ALLOW_ROW_LOCKS","ALLOW_SINGLE_EVENT_LOSS","ALLOW_SNAPSHOT_ISOLATION","ALLOWED","ALTER","ANONYMOUS","ANSI_DEFAULTS","ANSI_NULL_DEFAULT","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_NULLS","ANSI_PADDING","ANSI_WARNINGS","APPEND","APPLICATION","APPLICATION_LOG","ARITHABORT","ARITHIGNORE","AS","ASC","ASSEMBLY","ASYMMETRIC","ASYNCHRONOUS_COMMIT","AT","ATOMIC","ATTACH","ATTACH_REBUILD_LOG","AUDIT","AUDIT_GUID","AUTHENTICATION","AUTHORIZATION","AUTO","AUTO_CLEANUP","AUTO_CLOSE","AUTO_CREATE_STATISTICS","AUTO_SHRINK","AUTO_UPDATE_STATISTICS","AUTO_UPDATE_STATISTICS_ASYNC","AUTOMATED_BACKUP_PREFERENCE","AUTOMATIC","AVAILABILITY","AVAILABILITY_MODE","BACKUP","BACKUP_PRIORITY","BASE64","BATCHSIZE","BEGIN","BEGIN_DIALOG","BIGINT","BINARY","BINDING","BIT","BLOCKERS","BLOCKSIZE","BOUNDING_BOX","BREAK","BROKER","BROKER_INSTANCE","BROWSE","BUCKET_COUNT","BUFFER","BUFFERCOUNT","BULK","BULK_LOGGED","BY","CACHE","CALL","CALLED","CALLER","CAP_CPU_PERCENT","CASCADE","CASE","CATALOG","CATCH","CELLS_PER_OBJECT","CERTIFICATE","CHANGE_RETENTION","CHANGE_TRACKING","CHANGES","CHAR","CHARACTER","CHECK","CHECK_CONSTRAINTS","CHECK_EXPIRATION","CHECK_POLICY","CHECKALLOC","CHECKCATALOG","CHECKCONSTRAINTS","CHECKDB","CHECKFILEGROUP","CHECKIDENT","CHECKPOINT","CHECKTABLE","CLASSIFIER_FUNCTION","CLEANTABLE","CLEANUP","CLEAR","CLOSE","CLUSTER","CLUSTERED","CODEPAGE","COLLATE","COLLECTION","COLUMN","COLUMN_SET","COLUMNS","COLUMNSTORE","COLUMNSTORE_ARCHIVE","COMMIT","COMMITTED","COMPATIBILITY_LEVEL","COMPRESSION","COMPUTE","CONCAT","CONCAT_NULL_YIELDS_NULL","CONFIGURATION","CONNECT","CONSTRAINT","CONTAINMENT","CONTENT","CONTEXT","CONTINUE","CONTINUE_AFTER_ERROR","CONTRACT","CONTRACT_NAME","CONTROL","CONVERSATION","COOKIE","COPY_ONLY","COUNTER","CPU","CREATE","CREATE_NEW","CREATION_DISPOSITION","CREDENTIAL","CRYPTOGRAPHIC","CUBE","CURRENT","CURRENT_DATE","CURSOR","CURSOR_CLOSE_ON_COMMIT","CURSOR_DEFAULT","CYCLE","DATA","DATA_COMPRESSION","DATA_PURITY","DATABASE","DATABASE_DEFAULT","DATABASE_MIRRORING","DATABASE_SNAPSHOT","DATAFILETYPE","DATE","DATE_CORRELATION_OPTIMIZATION","DATEFIRST","DATEFORMAT","DATETIME","DATETIME2","DATETIMEOFFSET","DAY","DAYOFYEAR","DAYS","DB_CHAINING","DBCC","DBREINDEX","DDL_DATABASE_LEVEL_EVENTS","DEADLOCK_PRIORITY","DEALLOCATE","DEC","DECIMAL","DECLARE","DECRYPTION","DEFAULT","DEFAULT_DATABASE","DEFAULT_FULLTEXT_LANGUAGE","DEFAULT_LANGUAGE","DEFAULT_SCHEMA","DEFINITION","DELAY","DELAYED_DURABILITY","DELETE","DELETED","DENSITY_VECTOR","DENY","DEPENDENTS","DES","DESC","DESCRIPTION","DESX","DHCP","DIAGNOSTICS","DIALOG","DIFFERENTIAL","DIRECTORY_NAME","DISABLE","DISABLE_BROKER","DISABLED","DISK","DISTINCT","DISTRIBUTED","DOCUMENT","DOUBLE","DROP","DROP_EXISTING","DROPCLEANBUFFERS","DUMP","DURABILITY","DYNAMIC","EDITION","ELEMENTS","ELSE","EMERGENCY","EMPTY","EMPTYFILE","ENABLE","ENABLE_BROKER","ENABLED","ENCRYPTION","END","ENDPOINT","ENDPOINT_URL","ERRLVL","ERROR","ERROR_BROKER_CONVERSATIONS","ERRORFILE","ESCAPE","ESTIMATEONLY","EVENT","EVENT_RETENTION_MODE","EXEC","EXECUTABLE","EXECUTE","EXIT","EXPAND","EXPIREDATE","EXPIRY_DATE","EXPLICIT","EXTENDED_LOGICAL_CHECKS","EXTENSION","EXTERNAL","EXTERNAL_ACCESS","FAIL_OPERATION","FAILOVER","FAILOVER_MODE","FAILURE_CONDITION_LEVEL","FALSE","FAN_IN","FAST","FAST_FORWARD","FETCH","FIELDTERMINATOR","FILE","FILEGROUP","FILEGROWTH","FILELISTONLY","FILENAME","FILEPATH","FILESTREAM","FILESTREAM_ON","FILETABLE_COLLATE_FILENAME","FILETABLE_DIRECTORY","FILETABLE_FULLPATH_UNIQUE_CONSTRAINT_NAME","FILETABLE_NAMESPACE","FILETABLE_PRIMARY_KEY_CONSTRAINT_NAME","FILETABLE_STREAMID_UNIQUE_CONSTRAINT_NAME","FILLFACTOR","FILTERING","FIRE_TRIGGERS","FIRST","FIRSTROW","FLOAT","FMTONLY","FOLLOWING","FOR","FORCE","FORCE_FAILOVER_ALLOW_DATA_LOSS","FORCE_SERVICE_ALLOW_DATA_LOSS","FORCED","FORCEPLAN","FORCESCAN","FORCESEEK","FOREIGN","FORMATFILE","FORMSOF","FORWARD_ONLY","FREE","FREEPROCCACHE","FREESESSIONCACHE","FREESYSTEMCACHE","FROM","FULL","FULLSCAN","FULLTEXT","FUNCTION","GB","GEOGRAPHY_AUTO_GRID","GEOGRAPHY_GRID","GEOMETRY_AUTO_GRID","GEOMETRY_GRID","GET","GLOBAL","GO","GOTO","GOVERNOR","GRANT","GRIDS","GROUP","GROUP_MAX_REQUESTS","HADR","HASH","HASHED","HAVING","HEADERONLY","HEALTH_CHECK_TIMEOUT","HELP","HIERARCHYID","HIGH","HINT","HISTOGRAM","HOLDLOCK","HONOR_BROKER_PRIORITY","HOUR","HOURS","IDENTITY","IDENTITY_INSERT","IDENTITY_VALUE","IDENTITYCOL","IF","IGNORE_CONSTRAINTS","IGNORE_DUP_KEY","IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX","IGNORE_TRIGGERS","IMAGE","IMMEDIATE","IMPERSONATE","IMPLICIT_TRANSACTIONS","IMPORTANCE","INCLUDE","INCREMENT","INCREMENTAL","INDEX","INDEXDEFRAG","INFINITE","INFLECTIONAL","INIT","INITIATOR","INPUT","INPUTBUFFER","INSENSITIVE","INSERT","INSERTED","INSTEAD","INT","INTEGER","INTO","IO","IP","ISABOUT","ISOLATION","JOB","KB","KEEP","KEEP_CDC","KEEP_NULLS","KEEP_REPLICATION","KEEPDEFAULTS","KEEPFIXED","KEEPIDENTITY","KEEPNULLS","KERBEROS","KEY","KEY_SOURCE","KEYS","KEYSET","KILL","KILOBYTES_PER_BATCH","LABELONLY","LANGUAGE","LAST","LASTROW","LEVEL","LEVEL_1","LEVEL_2","LEVEL_3","LEVEL_4","LIFETIME","LIMIT","LINENO","LIST","LISTENER","LISTENER_IP","LISTENER_PORT","LOAD","LOADHISTORY","LOB_COMPACTION","LOCAL","LOCAL_SERVICE_NAME","LOCK_ESCALATION","LOCK_TIMEOUT","LOGIN","LOGSPACE","LOOP","LOW","MANUAL","MARK","MARK_IN_USE_FOR_REMOVAL","MASTER","MAX_CPU_PERCENT","MAX_DISPATCH_LATENCY","MAX_DOP","MAX_DURATION","MAX_EVENT_SIZE","MAX_FILES","MAX_IOPS_PER_VOLUME","MAX_MEMORY","MAX_MEMORY_PERCENT","MAX_QUEUE_READERS","MAX_ROLLOVER_FILES","MAX_SIZE","MAXDOP","MAXERRORS","MAXLENGTH","MAXRECURSION","MAXSIZE","MAXTRANSFERSIZE","MAXVALUE","MB","MEDIADESCRIPTION","MEDIANAME","MEDIAPASSWORD","MEDIUM","MEMBER","MEMORY_OPTIMIZED","MEMORY_OPTIMIZED_DATA","MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT","MEMORY_PARTITION_MODE","MERGE","MESSAGE","MESSAGE_FORWARD_SIZE","MESSAGE_FORWARDING","MICROSECOND","MILLISECOND","MIN_CPU_PERCENT","MIN_IOPS_PER_VOLUME","MIN_MEMORY_PERCENT","MINUTE","MINUTES","MINVALUE","MIRROR","MIRROR_ADDRESS","MODIFY","MONEY","MONTH","MOVE","MULTI_USER","MUST_CHANGE","NAME","NANOSECOND","NATIONAL","NATIVE_COMPILATION","NCHAR","NEGOTIATE","NESTED_TRIGGERS","NEW_ACCOUNT","NEW_BROKER","NEW_PASSWORD","NEWNAME","NEXT","NO","NO_BROWSETABLE","NO_CHECKSUM","NO_COMPRESSION","NO_EVENT_LOSS","NO_INFOMSGS","NO_TRUNCATE","NO_WAIT","NOCHECK","NOCOUNT","NOEXEC","NOEXPAND","NOFORMAT","NOINDEX","NOINIT","NOLOCK","NON","NON_TRANSACTED_ACCESS","NONCLUSTERED","NONE","NORECOMPUTE","NORECOVERY","NORESEED","NORESET","NOREWIND","NORMAL","NOSKIP","NOTIFICATION","NOTRUNCATE","NOUNLOAD","NOWAIT","NTEXT","NTLM","NUMANODE","NUMERIC","NUMERIC_ROUNDABORT","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OLD_ACCOUNT","OLD_PASSWORD","ON","ON_FAILURE","ONLINE","ONLY","OPEN","OPEN_EXISTING","OPENTRAN","OPTIMISTIC","OPTIMIZE","OPTION","ORDER","OUT","OUTPUT","OUTPUTBUFFER","OVER","OVERRIDE","OWNER","OWNERSHIP","PAD_INDEX","PAGE","PAGE_VERIFY","PAGECOUNT","PAGLOCK","PARAMETERIZATION","PARSEONLY","PARTIAL","PARTITION","PARTITIONS","PARTNER","PASSWORD","PATH","PER_CPU","PER_NODE","PERCENT","PERMISSION_SET","PERSISTED","PHYSICAL_ONLY","PLAN","POISON_MESSAGE_HANDLING","POOL","POPULATION","PORT","PRECEDING","PRECISION","PRIMARY","PRIMARY_ROLE","PRINT","PRIOR","PRIORITY","PRIORITY_LEVEL","PRIVATE","PRIVILEGES","PROC","PROCCACHE","PROCEDURE","PROCEDURE_NAME","PROCESS","PROFILE","PROPERTY","PROPERTY_DESCRIPTION","PROPERTY_INT_ID","PROPERTY_SET_GUID","PROVIDER","PROVIDER_KEY_NAME","PUBLIC","PUT","QUARTER","QUERY","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUEUE_DELAY","QUOTED_IDENTIFIER","RAISERROR","RANGE","RAW","RC2","RC4","RC4_128","READ","READ_COMMITTED_SNAPSHOT","READ_ONLY","READ_ONLY_ROUTING_LIST","READ_ONLY_ROUTING_URL","READ_WRITE","READ_WRITE_FILEGROUPS","READCOMMITTED","READCOMMITTEDLOCK","READONLY","READPAST","READTEXT","READUNCOMMITTED","READWRITE","REAL","REBUILD","RECEIVE","RECOMPILE","RECONFIGURE","RECOVERY","RECURSIVE","RECURSIVE_TRIGGERS","REFERENCES","REGENERATE","RELATED_CONVERSATION","RELATED_CONVERSATION_GROUP","RELATIVE","REMOTE","REMOTE_PROC_TRANSACTIONS","REMOTE_SERVICE_NAME","REMOVE","REORGANIZE","REPAIR_ALLOW_DATA_LOSS","REPAIR_FAST","REPAIR_REBUILD","REPEATABLE","REPEATABLEREAD","REPLICA","REPLICATION","REQUEST_MAX_CPU_TIME_SEC","REQUEST_MAX_MEMORY_GRANT_PERCENT","REQUEST_MEMORY_GRANT_TIMEOUT_SEC","REQUIRED","RESAMPLE","RESEED","RESERVE_DISK_SPACE","RESET","RESOURCE","RESTART","RESTORE","RESTRICT","RESTRICTED_USER","RESULT","RESUME","RETAINDAYS","RETENTION","RETURN","RETURNS","REVERT","REVOKE","REWIND","REWINDONLY","ROBUST","ROLE","ROLLBACK","ROLLUP","ROOT","ROUTE","ROW","ROWCOUNT","ROWGUIDCOL","ROWLOCK","ROWS","ROWS_PER_BATCH","ROWTERMINATOR","ROWVERSION","RSA_1024","RSA_2048","RSA_512","RULE","SAFE","SAFETY","SAMPLE","SAVE","SCHEDULER","SCHEMA","SCHEMA_AND_DATA","SCHEMA_ONLY","SCHEMABINDING","SCHEME","SCROLL","SCROLL_LOCKS","SEARCH","SECOND","SECONDARY","SECONDARY_ONLY","SECONDARY_ROLE","SECONDS","SECRET","SECURITY_LOG","SECURITYAUDIT","SELECT","SELECTIVE","SELF","SEND","SENT","SEQUENCE","SERIALIZABLE","SERVER","SERVICE","SERVICE_BROKER","SERVICE_NAME","SESSION","SESSION_TIMEOUT","SET","SETS","SETUSER","SHOW_STATISTICS","SHOWCONTIG","SHOWPLAN","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SHRINKDATABASE","SHRINKFILE","SHUTDOWN","SID","SIGNATURE","SIMPLE","SINGLE_BLOB","SINGLE_CLOB","SINGLE_NCLOB","SINGLE_USER","SINGLETON","SIZE","SKIP","SMALLDATETIME","SMALLINT","SMALLMONEY","SNAPSHOT","SORT_IN_TEMPDB","SOURCE","SPARSE","SPATIAL","SPATIAL_WINDOW_MAX_CELLS","SPECIFICATION","SPLIT","SQL","SQL_VARIANT","SQLPERF","STANDBY","START","START_DATE","STARTED","STARTUP_STATE","STAT_HEADER","STATE","STATEMENT","STATIC","STATISTICAL_SEMANTICS","STATISTICS","STATISTICS_INCREMENTAL","STATISTICS_NORECOMPUTE","STATS","STATS_STREAM","STATUS","STATUSONLY","STOP","STOP_ON_ERROR","STOPAT","STOPATMARK","STOPBEFOREMARK","STOPLIST","STOPPED","SUBJECT","SUBSCRIPTION","SUPPORTED","SUSPEND","SWITCH","SYMMETRIC","SYNCHRONOUS_COMMIT","SYNONYM","SYSNAME","SYSTEM","TABLE","TABLERESULTS","TABLESAMPLE","TABLOCK","TABLOCKX","TAKE","TAPE","TARGET","TARGET_RECOVERY_TIME","TB","TCP","TEXT","TEXTIMAGE_ON","TEXTSIZE","THEN","THESAURUS","THROW","TIES","TIME","TIMEOUT","TIMER","TIMESTAMP","TINYINT","TO","TOP","TORN_PAGE_DETECTION","TRACEOFF","TRACEON","TRACESTATUS","TRACK_CAUSALITY","TRACK_COLUMNS_UPDATED","TRAN","TRANSACTION","TRANSFER","TRANSFORM_NOISE_WORDS","TRIGGER","TRIPLE_DES","TRIPLE_DES_3KEY","TRUE","TRUNCATE","TRUNCATEONLY","TRUSTWORTHY","TRY","TSQL","TWO_DIGIT_YEAR_CUTOFF","TYPE","TYPE_WARNING","UNBOUNDED","UNCHECKED","UNCOMMITTED","UNDEFINED","UNIQUE","UNIQUEIDENTIFIER","UNKNOWN","UNLIMITED","UNLOAD","UNSAFE","UPDATE","UPDATETEXT","UPDATEUSAGE","UPDLOCK","URL","USE","USED","USER","USEROPTIONS","USING","VALID_XML","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","VERIFYONLY","VERSION","VIEW","VIEW_METADATA","VIEWS","VISIBILITY","WAIT_AT_LOW_PRIORITY","WAITFOR","WEEK","WEIGHT","WELL_FORMED_XML","WHEN","WHERE","WHILE","WINDOWS","WITH","WITHIN","WITHOUT","WITNESS","WORK","WORKLOAD","WRITETEXT","XACT_ABORT","XLOCK","XMAX","XMIN","XML","XMLDATA","XMLNAMESPACES","XMLSCHEMA","XQUERY","XSINIL","YEAR","YMAX","YMIN"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/(<)(where|set|foreach|if|trim|elseif|else)/,["delimiter",{token:"tag",next:"@xml"}]],[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]],xml:[[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@xmlEmbedded",nextEmbedded:"mybatis"}],[/[ \t\r\n]+/],[/(<\/)(where|if|set|foreach|trim|elseif|else)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],xmlEmbedded:[[/<\/(where|if|set|foreach|trim|elseif|else)/,{token:"tag",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}})},lo=()=>{ro();const e="magicscript";W.register({id:e}),W.setLanguageConfiguration(e,{wordPattern:/(-?\d*\.\d\w*)|([^`~!#%^&*()\-=+[{\]}\\|;:'",.<>/?\s]+)/g,brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:W.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:W.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:W.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:W.IndentAction.None,removeText:1}}],comments:{lineComment:"//",blockComment:["/*","*/"]},operators:["<=",">=","==","!=","+","-","*","/","%","&","|","!","&&","||","?",":","++","--","+=","-=","*=","/="],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string.multi"]},{open:"",close:""},{open:"'},{open:"'},{open:""},{open:"",close:""},{open:"",close:""},{open:"'},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]},{open:"/**",close:" */",notIn:["string"]}]}),W.setMonarchTokensProvider(e,ha),W.registerCompletionItemProvider(e,ao),W.registerFoldingRangeProvider(e,io),W.registerSignatureHelpProvider(e,so),W.registerHoverProvider(e,oo),W.registerDocumentFormattingEditProvider(e,{provideDocumentFormattingEdits(t,a,n){return[{text:new re(t.getValue()).beautify(),range:t.getFullModelRange()}]}}),W.registerCompletionItemProvider("html",{triggerCharacters:[">"],provideCompletionItems:(t,a)=>{var o;const i=(o=t.getValueInRange({startLineNumber:a.lineNumber,startColumn:1,endLineNumber:a.lineNumber,endColumn:a.column}).match(/.*<(\w+)>$/))==null?void 0:o[1];if(!i)return;const s=t.getWordUntilPosition(a);return{suggestions:[{label:``,kind:W.CompletionItemKind.EnumMember,insertText:`$1`,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet,range:{startLineNumber:a.lineNumber,endLineNumber:a.lineNumber,startColumn:s.startColumn,endColumn:s.endColumn}}]}}})};function Oe(e,t,a){var n={debug:!1,automaticOpen:!0,reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,timeoutInterval:2e3,maxReconnectAttempts:null,binaryType:"blob"};a||(a={});for(var i in n)typeof a[i]!="undefined"?this[i]=a[i]:this[i]=n[i];this.url=e,this.reconnectAttempts=0,this.readyState=WebSocket.CONNECTING,this.protocol=null;var s=this,o,r=!1,l=!1,u=document.createElement("div");u.addEventListener("open",function(g){s.onopen(g)}),u.addEventListener("close",function(g){s.onclose(g)}),u.addEventListener("connecting",function(g){s.onconnecting(g)}),u.addEventListener("message",function(g){s.onmessage(g)}),u.addEventListener("error",function(g){s.onerror(g)}),this.addEventListener=u.addEventListener.bind(u),this.removeEventListener=u.removeEventListener.bind(u),this.dispatchEvent=u.dispatchEvent.bind(u);function d(g,f){var E=document.createEvent("CustomEvent");return E.initCustomEvent(g,!1,!1,f),E}this.open=function(g){if(o=new WebSocket(s.url,t||[]),o.binaryType=this.binaryType,g){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else u.dispatchEvent(d("connecting")),this.reconnectAttempts=0;(s.debug||Oe.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",s.url);var f=o,E=setTimeout(function(){(s.debug||Oe.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",s.url),l=!0,f.close(),l=!1},s.timeoutInterval);o.onopen=function(m){clearTimeout(E),(s.debug||Oe.debugAll)&&console.debug("ReconnectingWebSocket","onopen",s.url),s.protocol=o.protocol,s.readyState=WebSocket.OPEN,s.reconnectAttempts=0;var L=d("open");L.isReconnect=g,g=!1,u.dispatchEvent(L)},o.onclose=function(m){if(clearTimeout(C),o=null,r)s.readyState=WebSocket.CLOSED,u.dispatchEvent(d("close"));else{s.readyState=WebSocket.CONNECTING;var L=d("connecting");L.code=m.code,L.reason=m.reason,L.wasClean=m.wasClean,u.dispatchEvent(L),!g&&!l&&((s.debug||Oe.debugAll)&&console.debug("ReconnectingWebSocket","onclose",s.url),u.dispatchEvent(d("close")));var C=s.reconnectInterval*Math.pow(s.reconnectDecay,s.reconnectAttempts);setTimeout(function(){s.reconnectAttempts++,s.open(!0)},C>s.maxReconnectInterval?s.maxReconnectInterval:C)}},o.onmessage=function(m){(s.debug||Oe.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",s.url,m.data);var L=d("message");L.data=m.data,u.dispatchEvent(L)},o.onerror=function(m){(s.debug||Oe.debugAll)&&console.debug("ReconnectingWebSocket","onerror",s.url,m),u.dispatchEvent(d("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(g){if(o)return(s.debug||Oe.debugAll)&&console.debug("ReconnectingWebSocket","send",s.url,g),o.send(g);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(g,f){typeof g=="undefined"&&(g=1e3),r=!0,o&&o.close(g,f)},this.refresh=function(){o&&o.close()}}Oe.prototype.onopen=function(e){};Oe.prototype.onclose=function(e){};Oe.prototype.onconnecting=function(e){};Oe.prototype.onmessage=function(e){};Oe.prototype.onerror=function(e){};Oe.debugAll=!1;Oe.CONNECTING=WebSocket.CONNECTING;Oe.OPEN=WebSocket.OPEN;Oe.CLOSING=WebSocket.CLOSING;Oe.CLOSED=WebSocket.CLOSED;let da={};function Yt(e){if(da[e])try{da[e].close()}catch{}this.listeners={},this.future=new Promise(t=>{this.resolve=t,this.socket=new Oe(e,null,{timeoutInterval:1e4}),da[e]=this,this.socket.onmessage=this.messageReceived,this.socket.onconnecting=()=>{this.future=new Promise(a=>this.resolve=a),T.status("message.connectDebugServer")},this.socket.onopen=()=>{T.status("message.connectDebugServerSuccess"),T.$emit("ws_open"),this.resolve()},this.socket.onclose=()=>{T.status("message.debugServerClose"),T.$emit("ws_close")}})}Yt.prototype.on=function(e,t){this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)};Yt.prototype.messageReceived=function(e){let t=e.data,a=t.indexOf(","),n=a===-1?t:t.substring(0,a),i=[];for(;a>-1;){if(t=t.substring(a+1),t.startsWith("[")||t.startsWith("{")){i.push(JSON.parse(t));break}a=t.indexOf(","),i.push(a===-1?t:t.substring(0,a))}T.$emit("ws_"+n,i)};Yt.prototype.send=function(e){this.future.then(()=>{this.socket.send(e)})};Yt.prototype.close=function(){this.socket.close()};var Se={OPEN:"open",BREAKPOINT:"breakpoint",LOGIN:"login",RESUME_BREAKPOINT:"resume_breakpoint",LOGIN_RESPONSE:"login_response",REFRESH_TOKEN:"refresh_token",LOG:"log",LOGS:"logs",EXCEPTION:"exception",USER_LOGIN:"user_login",USER_LOGOUT:"user_logout",ONLINE_USERS:"online_users",SET_FILE_ID:"set_file_id",INTO_FILE_ID:"into_file_id",PING:"ping",PONG:"pong"};const co=R("div",{class:"magic-mounts"},null,-1),uo={__name:"magic-editor",props:{config:{type:Object,required:!0}},setup(e){const t=e;lo(),Ye("bus",T),self.MonacoEnvironment={getWorker:function(N,V){return V==="json"?new ei:V==="html"?new ti:new ai}},t.config.header=t.config.header||{};const a=U(!1),n=U(null),i=U(null),s=U(!1),o=U(null);Ye("ELEMENT_ROOT",i),Ye("activateUserFiles",U({}));let r=null;const l=t.config;D.BASE_URL=l.baseURL||"",D.SERVER_URL=l.serverURL||"";let u=`${location.protocol}//${location.host}${location.pathname}`.replace("/index.html","");D.BASE_URL.startsWith("http")?u=D.BASE_URL:D.BASE_URL.startsWith("/")?u=`${location.protocol}/${location.host}${D.BASE_URL}`:u=u+"/"+D.BASE_URL,l.blockClose!==!1&&(window.onbeforeunload=()=>"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002");const d=l.request||{beforeSend:N=>N,onError:N=>Promise.reject(N)};Y.getAxios().interceptors.request.use(N=>d.beforeSend&&d.beforeSend(N)||N,N=>d.onError&&d.onError(N)||Promise.reject(N));const g=l.response||{onSuccess:N=>N,onError:N=>Promise.reject(N)};Y.getAxios().interceptors.response.use(N=>g.onSuccess&&g.onSuccess(N)||N,N=>g.onError&&g.onError(N)||Promise.reject(N)),Y.setBaseURL(D.BASE_URL),D.AUTO_SAVE=l.autoSave!==!1,T.status("message.loadClass"),Ye("i18n.format",c);const f=()=>new Promise(N=>{Y.sendGet("/plugins").success(V=>Promise.all((V||[]).filter(ie=>ie.javascriptFilename).map(ie=>new Promise(se=>{T.status("plugin.loading",!0,ie.name),Ji(it(u+"/plugins/"+ie.javascriptFilename)).then(()=>{D.PLUGINS.push(window[ie.globalName]({i18n:{add:bi,format:c},request:Y,constants:D,Message:$,bus:T,modal:me,JavaClass:ae,monaco:ni})),T.status("plugin.loaded",!0,ie.name),se()}).catch(J=>{T.status("plugin.loadFailed",!1,ie.name),se()})}))).then(()=>N())).error(()=>N())}),E=Tt().appContext.app;Promise.all([ae.initClasses(),ae.initImportClass(),f()]).then(()=>T.status("message.loadClassFinish")).catch(N=>{T.status("message.loadClassError")}).finally(()=>{D.PLUGINS.forEach(N=>{N.datasources&&N.datasources.filter(V=>V.component).forEach(V=>{E.component(`magic-datasource-${V.type}`,V.component)})}),s.value=!0});const m=t.config.options||[];Ye("options",m),Y.sendGet("/options").success(N=>{N.forEach(V=>m.push(V))});const L=()=>{D.LOGINED=!0,r=new Yt(it(u.replace(/^http/,"ws")+"/console")),be(()=>n.value.loadResources())};T.$on($.LOGINED,L);const C=()=>{fetch("https://console.ssssssss.org.cn/latest?group=org.ssssssss&artifactId=magic-api&from="+D.MAGIC_API_VERSION_TEXT).then(N=>{t.config.checkUpdate!==!1&&N.status===200&&N.json().then(V=>{V.version&&V.version!=="unknown"&&D.config.version!==V.version?(T.status("message.newVersionRelease",!0,V.version),V.version!==De.get(D.IGNORE_VERSION)&&T.$emit($.NOTIFY,{title:c("message.tips"),icon:"warning",content:c("message.versionUpdate",V.version),buttons:[{title:c("message.changelog"),onClick:()=>{window.open("http://www.ssssssss.org/magic-api/changelog.html")}},{title:c("message.ignore"),onClick:()=>{De.set(D.IGNORE_VERSION,V.version)}}]})):T.status("message.versionLastest")})})},x=()=>l.getMagicTokenValue&&l.getMagicTokenValue()||De.get(D.STORE.token)||D.HEADER_MAGIC_TOKEN_VALUE,b=()=>new Promise(N=>{D.HEADER_MAGIC_TOKEN_VALUE=x(),T.status("message.tryAutoLogin"),Y.sendPost("/login").success(V=>{a.value=!V,V&&be(()=>{T.status("message.autoLoginSuccess"),T.$emit($.LOGINED)})}).end(N)}),S=()=>{typeof hideMaLoading=="function"&&hideMaLoading()},A=()=>{Y.execute({url:"/config.json",method:"get"}).then(N=>{if(D.config=N.data,t.config.inJar&&location.href.indexOf(N.data.web)>-1){let V=location.href.substring(0,location.href.indexOf(N.data.web));D.SERVER_URL=it(V+"/"+(N.data.prefix||""))}D.config.version&&D.config.version!==D.MAGIC_API_VERSION_TEXT&&(T.status("message.versionConflict",!1,D.MAGIC_API_VERSION_TEXT,D.config.version),T.$emit($.NOTIFY,{icon:"error",title:c("message.versionCheck"),content:c("message.versionConflict",D.MAGIC_API_VERSION_TEXT,D.config.version)})),b().then(()=>{S(),C()})}).catch(N=>{console.error(N),S(),o.value=c("message.loadConfigError")})},M=()=>{const N=document.body;ce.bind(N,ce.Ctrl|ce.S,()=>T.$emit($.DO_SAVE,!0)),ce.bind(N,ce.Ctrl|ce.Q,()=>T.$emit($.DO_TEST)),ce.bind(N,ce.Ctrl|ce.E,()=>T.$emit($.DO_RECENT)),ce.bind(N,ce.F8,()=>T.$emit($.DEBUG_CONTINUE)),ce.bind(N,ce.F6,()=>T.$emit($.DEBUG_SETPINTO)),ce.bind(N,ce.Ctrl|ce.Shift|ce.F,()=>T.$emit($.DO_SEARCH))};pt(()=>{M()}),Gn(()=>ce.unbind());const I=We({});At("default",as),At("dark",ns),At("gray-new",is),At("dark-new",ss),Object.keys(l.themes||{}).forEach(N=>{At(N,l.themes[N])}),D.THEME=l.theme||"default",D.DEFAULT_EXPAND=l.defaultExpand!==!1,D.JDBC_DRIVERS=l.jdbcDrivers||D.JDBC_DRIVERS,D.DATASOURCE_TYPES=l.datasourceTypes||D.DATASOURCE_TYPES,l.editorFontFamily!==void 0&&(D.EDITOR_FONT_FAMILY=l.editorFontFamily),l.editorFontSize!==void 0&&(D.EDITOR_FONT_SIZE=l.editorFontSize),D.FONT_LIGATURES=l.fontLigatures!==!1,l.logMaxRows!==void 0&&(D.LOG_MAX_ROWS=Math.max(l.logMaxRows,10)),l.decorationTimeout!==void 0&&(D.DECORATION_TIMEOUT=l.decorationTimeout),T.$on($.MESSAGE,(N,V)=>{r&&(V?r.send(`${N},${V}`):r.send(N))}),T.$event(Se.OPEN,()=>{D.CLIENT_ID=qi(16),be(()=>T.send(Se.LOGIN,[x(),D.CLIENT_ID].join(",")))}),T.$event(Se.LOGIN_RESPONSE,([N,V])=>{N==="1"&&(D.user=V)}),T.$event(Se.REFRESH_TOKEN,([N])=>{D.HEADER_MAGIC_TOKEN_VALUE=N,De.set(D.STORE.token,D.HEADER_MAGIC_TOKEN_VALUE)});const H=()=>{a.value=!0,r&&r.close(),r=null};return T.$on($.LOGOUT,H),T.$on($.SHOW_LOGIN,H),(N,V)=>{const ie=y("magic-login"),se=y("magic-header"),J=y("magic-main"),Ee=y("magic-status-bar"),xe=y("magic-notify");return v(),k("div",{class:"magic-editor",style:je(I),onContextmenu:V[2]||(V[2]=ye(()=>{},["prevent"])),ref_key:"root",ref:i},[bt(_(ie,{value:a.value,"onUpdate:value":V[0]||(V[0]=Xe=>a.value=Xe),error:o.value,"onUpdate:error":V[1]||(V[1]=Xe=>o.value=Xe)},null,8,["value","error"]),[[Ut,a.value]]),s.value?(v(),j(se,{key:0,themeStyle:I,header:h(l).header,title:h(l).title},null,8,["themeStyle","header","title"])):X("",!0),s.value?(v(),j(J,{key:1,ref_key:"componentMain",ref:n,onOnLoad:A},null,512)):X("",!0),s.value?(v(),j(Ee,{key:2,config:h(l)},null,8,["config"])):X("",!0),s.value?(v(),j(xe,{key:3})):X("",!0),co],36)}}};var po=Object.freeze(Object.defineProperty({__proto__:null,default:uo},Symbol.toStringTag,{value:"Module"}));var q=(e,t)=>{const a=e.__vccOpts||e;for(const[n,i]of t)a[n]=i;return a};const _o={props:{menus:Array,onDestory:Function,position:Object},data(){return{style:{left:this.position.x+"px",top:this.position.y+"px",element:U(null)}}},mounted(){document.addEventListener("click",this.onMouseup);const e=document.querySelector(".magic-editor").getBoundingClientRect(),t=e.x+e.width,a=e.y+e.height,n=this.$el.getBoundingClientRect();n.x+n.width>t&&(this.style.left=`${t-n.width}px`),n.y+n.height>a&&(this.style.top=`${a-n.height}px`)},unmounted(){document.removeEventListener("click",this.onMouseup)},methods:{onMouseup(){this.onDestory&&this.onDestory()}}},ho=["onClick"],fo={key:0,class:"magic-context-menu-icon"},go={class:"magic-context-menu-icon right"},mo={class:"magic-context-menu none-select"},vo=["onClick"],bo={key:0,class:"magic-context-menu-icon"};function Eo(e,t,a,n,i,s){const o=y("magic-icon");return v(),k("ul",{class:"magic-context-menu none-select",style:je(i.style),ref:"element"},[(v(!0),k(te,null,fe(a.menus,(r,l)=>(v(),k("li",{key:l,class:ve({divided:r.divided}),onClick:ye(()=>{s.onMouseup(),r.onClick&&r.onClick()},["stop"])},[a.menus.some(u=>u.icon)?(v(),k("span",fo,[r.icon?(v(),j(o,{key:0,icon:r.icon,size:"12px"},null,8,["icon"])):X("",!0)])):X("",!0),R("label",null,F(r.label),1),r.children?(v(),k(te,{key:1},[R("span",go,[_(o,{icon:"right",size:"12px"})]),R("ul",mo,[(v(!0),k(te,null,fe(r.children,(u,d)=>(v(),k("li",{key:d,class:ve({divided:u.divided}),onClick:ye(()=>{s.onMouseup(),u.onClick&&u.onClick()},["stop"])},[r.children.some(g=>g.icon)?(v(),k("span",bo,[u.icon?(v(),j(o,{key:0,icon:u.icon,size:"12px"},null,8,["icon"])):X("",!0)])):X("",!0),R("label",null,F(u.label),1)],10,vo))),128))])],64)):X("",!0)],10,ho))),128))],4)}var Pn=q(_o,[["render",Eo],["__scopeId","data-v-75aac978"]]),yo=Object.freeze(Object.defineProperty({__proto__:null,default:Pn},Symbol.toStringTag,{value:"Module"}));const To={class:"magic-empty"},So={__name:"magic-empty",props:{text:{type:String,default:c("message.nodata")}},setup(e){return(t,a)=>(v(),k("div",To,[R("p",null,F(e.text),1)]))}};var xo=q(So,[["__scopeId","data-v-70308d5a"]]),Oo=Object.freeze(Object.defineProperty({__proto__:null,default:xo},Symbol.toStringTag,{value:"Module"}));const Ro={class:"icon"},Ao={__name:"magic-loading",props:{loading:Boolean,loadingText:{type:String,default:c("message.loading")},style:Object},setup(e){return(t,a)=>{const n=y("magic-icon");return e.loading?(v(),k("div",{key:0,class:"magic-loading",style:je(e.style)},[R("p",null,[R("span",Ro,[_(n,{icon:"refresh",size:"20px"})]),pe(" "+F(e.loadingText),1)])],4)):St(t.$slots,"default",{key:1},void 0,!0)}}};var Co=q(Ao,[["__scopeId","data-v-19c11c56"]]),Io=Object.freeze(Object.defineProperty({__proto__:null,default:Co},Symbol.toStringTag,{value:"Module"}));const ko={props:{language:{type:String,required:!0},editorConfig:{type:Object,default:{}},value:Array},setup(){return{instance:null,instancePromise:null}},mounted(){this.instance=$e.createDiffEditor(this.$refs.editor,{...this.editorConfig,enableSplitViewResizing:!1,language:this.language,minimap:{enabled:!1},folding:!1,lineDecorationsWidth:20,wordWrap:"on",fixedOverflowWidgets:!1,fontFamily:D.EDITOR_FONT_FAMILY,fontSize:D.EDITOR_FONT_SIZE,fontLigatures:D.FONT_LIGATURES,renderWhitespace:"none",theme:D.THEME,readOnly:this.readonly===!0,value:this.value||"",automaticLayout:!0}),this.instance.setModel({original:$e.createModel(this.value[0],this.language),modified:$e.createModel(this.value[1],this.language)}),et(()=>this.language,()=>{nextTick(()=>this.instance.setModel({original:$e.createModel(this.value[0],this.language),modified:$e.createModel(this.value[1],this.language)}))})},methods:{getEditorDom(){return this.$refs.editor},getInstance(){return this.instance}},watch:{value(e){this.instance.setModel({original:$e.createModel(e[0],this.language),modified:$e.createModel(e[1],this.language)})}}},Lo={class:"magic-monaco-editor",ref:"editor"};function No(e,t,a,n,i,s){return v(),k("div",Lo,null,512)}var wo=q(ko,[["render",No],["__scopeId","data-v-59a04eab"]]),Do=Object.freeze(Object.defineProperty({__proto__:null,default:wo},Symbol.toStringTag,{value:"Module"}));const Mo={props:{language:{type:String,required:!0},editorConfig:{type:Object,default:{}},value:String,decorations:Array,readonly:{type:Boolean,default:!1},supportBreakpoint:{type:Boolean,default:!1},matches:String},setup(){return{instance:null,instancePromise:null}},emits:["update:value","change","update:decorations"],mounted(){this.instance=$e.create(this.$refs.editor,{...this.editorConfig,language:this.language,minimap:{enabled:!1},folding:!0,lineDecorationsWidth:this.supportBreakpoint?35:void 0,wordWrap:"on",fontFamily:D.EDITOR_FONT_FAMILY,fontSize:D.EDITOR_FONT_SIZE,fontLigatures:D.FONT_LIGATURES,renderWhitespace:"none",theme:D.THEME,readOnly:this.readonly===!0,value:this.value||"",automaticLayout:!0}),et(()=>this.language,()=>{be(()=>this.instance.setModel($e.createModel(this.instance.getModel().getValue(),this.language)))}),this.instance.onDidChangeModelContent(e=>{this.$emit("update:value",this.instance.getValue()),this.$emit("change",e),this.doValidate()}),this.instance.addAction({id:"editor.action.triggerSuggest.extension",label:c("editor.triggerSuggest"),precondition:"!suggestWidgetVisible && !markersNavigationVisible && !parameterHintsVisible && !findWidgetVisible",run:()=>{this.instance.trigger(null,"editor.action.triggerSuggest",{})}}),Ya.registerCommand("editor.action.appendHead",(e,t)=>{var a;((a=this.value)==null?void 0:a.indexOf(t))>-1||(this.instance.executeEdits("command",[{forceMoveMarkers:!0,text:t,range:new st(1,0,1,0)}]),this.instance.setScrollTop(this.instance.getScrollTop()-22))}),this.instance.addCommand(ct.Alt|ft.US_SLASH,()=>{let e=this.instance.getAction("editor.action.triggerParameterHints"),t=this.instance.getAction("editor.action.triggerSuggest.extension");e.run().then(()=>{setTimeout(()=>{t.isSupported()&&t.run()},0)})},"!findWidgetVisible && !inreferenceSearchEditor && !editorHasSelection"),this.initKeys(),this.initDecorations()},methods:{doValidate(){if(this.instance&&$e.setModelMarkers(this.instance.getModel(),"validate",[{}]),this.language==="magicscript")try{new zt(new _t(Gt(this.instance.getValue()))).parse()}catch(e){if(e.span){let t=e.span.getLine();$e.setModelMarkers(this.instance.getModel(),"validate",[{startLineNumber:t.lineNumber,endLineNumber:t.endLineNumber,startColumn:t.startCol,endColumn:t.endCol,message:e.message,severity:ii.Error}])}}},getEditorDom(){return this.$refs.editor},getScrollTop(){return this.instance&&this.instance.getScrollTop()},setScrollTop(e){this.instance&&this.instance.setScrollTop(e)},match(){this.matches&&be(()=>{let e=this.instance.getModel().findMatches(this.matches);e&&e.length>0&&this.instance.setSelections(e.map(({range:t})=>({positionColumn:t.endColumn,positionLineNumber:t.endLineNumber,selectionStartColumn:t.startColumn,selectionStartLineNumber:t.startLineNumber})))})},initKeys(){[["editor.action.triggerParameterHints",ct.Alt|ft.US_SLASH],["editor.action.triggerSuggest",ct.Alt|ft.US_SLASH],["toggleSuggestionDetails",ct.Alt|ft.US_SLASH,si.deserialize("suggestWidgetVisible && textInputFocus")],["editor.action.formatDocument",ct.CtrlCmd|ct.Alt|ft.KEY_L],["editor.action.marker.nextInFiles",ct.CtrlCmd|ft.F8]].forEach(t=>{var s;let a=t[0];const{handler:n,when:i}=(s=Ya.getCommand(a))!=null?s:{};if(n){let o=sa._coreKeybindings.findIndex(r=>r.command===a);o>0&&sa._coreKeybindings.splice(o,1),this.instance._standaloneKeybindingService.addDynamicKeybinding(a,t[1],n,i||t[2])}}),sa._cachedMergedKeybindings=null},getInstance(){return this.instance},initDecorations(){this.instance.onMouseDown(e=>{if(!e.target.element.classList.contains("codicon")&&e.target.detail&&e.target.detail.offsetX&&e.target.detail.offsetX>=0&&e.target.detail.offsetX<=65){var t=e.target.position.lineNumber;if(this.instance.getModel().getLineContent(t).trim()==="")return;let n=this.instance.getLineDecorations(t).filter(i=>i.options.linesDecorationsClassName==="breakpoints");n&&n.length>0?this.instance.getModel().deltaDecorations([n[0].id],[]):this.instance.getModel().deltaDecorations([],[{range:new st(t,1,t,1),options:{isWholeLine:!0,linesDecorationsClassName:"breakpoints",className:"breakpoint-line"}}]),this.updateDecoration()}})},appendDecoration(e){const t=this.instance.deltaDecorations([],e);return this.updateDecoration(),t},removedDecorations(e){this.instance.deltaDecorations(e,[]),this.updateDecoration()},updateDecoration(){this.$emit("update:decorations",this.instance.getModel().getAllDecorations())}},watch:{value(e){e!==this.instance.getValue()&&(this.instance.setValue(e||""),this.match())},matches(){this.match()}}},Po={class:"magic-monaco-editor",ref:"editor"};function Uo(e,t,a,n,i,s){return v(),k("div",Po,null,512)}var $o=q(Mo,[["render",Uo],["__scopeId","data-v-9b3f02a8"]]),Fo=Object.freeze(Object.defineProperty({__proto__:null,default:$o},Symbol.toStringTag,{value:"Module"}));const Bo={props:{max:Number,min:Number,value:Number,direction:String,reverse:{type:Boolean,default:!1}},setup(e){return{style:U({[e.direction==="x"?"width":"height"]:(e.value||e.min)+"px"})}},mounted(){new ResizeObserver(this.updateCss).observe(this.$refs.resizer)},methods:{updateCss(){try{const e=this.$refs.resizer.parentElement;this.$refs.resizer.style.setProperty("--width",e.offsetWidth+"px"),this.$refs.resizer.style.setProperty("--height",e.offsetHeight+"px")}catch{}},mousedown(e){const t=this.direction==="x",a=t?e.clientX:e.clientY,n=e.target.parentElement.getBoundingClientRect();document.onmousemove=i=>{let s=t?n.width:n.height;t?this.reverse?s=a-i.clientX+n.width:s=i.clientX-a+n.width:this.reverse?s=i.clientY-a+n.height:s=a-i.clientY+n.height,s>=this.min&&s<=this.max&&(this.style[t?"width":"height"]=`${s}px`)},document.onmouseup=()=>{document.onmousemove=document.onmouseup=null},e.stopPropagation(),e.preventDefault()}}};function Ho(e,t,a,n,i,s){return v(),k("div",{class:ve(`magic-resizer-${this.direction}`),style:je(n.style)},[St(e.$slots,"default",{},void 0,!0),R("div",{class:ve(["magic-resizer-event",{reverse:a.reverse}]),onMousedown:t[0]||(t[0]=(...o)=>s.mousedown&&s.mousedown(...o)),ref:"resizer"},null,34)],6)}var Vo=q(Bo,[["render",Ho],["__scopeId","data-v-032bc45e"]]),jo=Object.freeze(Object.defineProperty({__proto__:null,default:Vo},Symbol.toStringTag,{value:"Module"}));const Go={class:"magic-navbar-item"},zo={__name:"magic-navbar-item",props:{title:String,style:Object,show:{type:Boolean,default:!0},to:HTMLElement},setup(e){return(t,a)=>(v(),k("div",Go,[St(t.$slots,"default",{},void 0,!0)]))}};var Yo=q(zo,[["__scopeId","data-v-30388e35"]]),qo=Object.freeze(Object.defineProperty({__proto__:null,default:Yo},Symbol.toStringTag,{value:"Module"})),Ko=`.magic-navbar{display:flex;background-color:var(--main-background-color);transition:.3s}.magic-navbar .magic-navbar-body{background-color:var(--navbar-body-background-color);overflow:auto}.magic-navbar .magic-navbar-header li:hover{background-color:var(--main-hover-background-color)}.magic-navbar .magic-navbar-header li.selected{background-color:var(--main-selected-background-color);color:var(--main-selected-color)}.magic-navbar .magic-navbar-header li.selected svg text{fill:var(--main-selected-color)}.magic-navbar .magic-navbar-header li svg text{letter-spacing:0px;font-size:10px}.magic-navbar__vertical.reverse{flex-direction:row-reverse}.magic-navbar__vertical .magic-navbar-header li{display:flex;flex-direction:column;align-items:center;overflow:hidden;padding:var(--magic-navbar-vertical-header-padding);margin:var(--magic-navbar-vertical-header-margin);cursor:pointer;border-bottom-color:var(--main-border-color);border-bottom-style:solid;border-bottom-width:var(--magic-navbar-vertical-header-border-width);border-radius:var(--magic-navbar-vertical-header-border-radius)}.magic-navbar__vertical .magic-navbar-header{width:var(--magic-navbar-vertical-width);height:100%;letter-spacing:2px;text-align:center;padding:0;border-right:1px solid var(--main-border-color)}.magic-navbar__vertical.reverse .magic-navbar-header{border-left:1px solid var(--main-border-color);border-right:none}.magic-navbar__vertical.reverse .magic-navbar-header li{display:flex;flex-direction:column-reverse}.magic-navbar__vertical .magic-navbar-header li{line-height:14px;word-break:break-all}.magic-navbar__vertical .magic-navbar-body{flex:1}.magic-navbar__vertical .magic-navbar-body{border-right:1px solid var(--navbar-body-border-color)}.magic-navbar__vertical.reverse .magic-navbar-body{border-left:1px solid var(--navbar-body-border-color);border-right:none}.magic-navbar__horizontal>ul{width:100%}.magic-navbar__horizontal>ul li{display:inline-flex;flex-direction:row-reverse;padding:0 8px;height:var(--magic-navbar-horizontal-height);line-height:var(--magic-navbar-horizontal-height);cursor:pointer;color:var(--main-color)}.magic-navbar__horizontal>ul li svg.magic-icon{height:100%;margin-right:4px}.magic-navbar__horizontal>ul{border-top:1px solid var(--main-border-color)}.magic-navbar.magic-navbar__vertical .magic-navbar-title{padding-bottom:4px;display:var(--magic-navbar-vertical-title-display)}.magic-navbar.magic-navbar__vertical>ul li svg.magic-icon{width:var(--magic-navbar-vertical-icon-size);height:var(--magic-navbar-vertical-icon-size)}.magic-navbar.magic-navbar__vertical.reverse .magic-navbar-title{padding-top:4px;padding-bottom:0;display:var(--magic-navbar-vertical-title-display)} -`,Wo=Object.freeze(Object.defineProperty({__proto__:null,default:Ko},Symbol.toStringTag,{value:"Module"}));const Xo={"aria-hidden":"true",class:"magic-icon"},Jo=["xlink:href"],Qo={__name:"magic-icon",props:{prefix:{type:String,default:"magic-icon"},icon:String,size:String},setup(e){const t=e,a=_e(()=>t.icon&&t.icon.startsWith("#")?t.icon:`#${t.prefix}-${t.icon}`),n=_e(()=>t.icon&&t.icon.startsWith("#")?t.icon.substring(1):`${t.prefix}-${t.icon}`);return(i,s)=>(v(),k("svg",Xo,[R("use",{"xlink:href":h(a),class:ve(h(n))},null,10,Jo)]))}};var Ba=q(Qo,[["__scopeId","data-v-15383e92"]]),Zo=Object.freeze(Object.defineProperty({__proto__:null,default:Ba},Symbol.toStringTag,{value:"Module"}));var er={props:{direction:{type:String,default:""},reverse:{type:Boolean,default:!1},defaultSelect:{type:Number,default:0},allowClose:{type:Boolean,default:!0},tooltipDirection:{type:String,default:"right"},spliter:Boolean,value:Array,to:HTMLElement},setup(e,t){const a=U(e.defaultSelect);return{slots:_e(()=>t.slots.default()[0].children),navbars:_e(()=>t.slots.default()[0].children.flatMap(n=>n.props)),selectIndex:a}},methods:{select(e){this.selectIndex=e}},render(){const e=n=>{const i=parseInt(Math.random()*1e8),s=n.length*6;return le("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:22,height:s},[le("defs",le("path",{id:`path-text-${i}`,d:this.reverse?`M6,0 L6,${s}`:`M14,${s} L14,0`})),le("text",{fill:"var(--main-color)"},le("textPath",{"xlink:href":`#path-text-${i}`},n))])},t=n=>{if(this.spliter&&this.direction==="vertical"&&n.match(/\w/g)){const i=[];let s="",o=1,r;const l=n.split("");for(let u=0,d=l.length;u{const s=[le("div",{class:"magic-navbar-title"},[...t(n.title)])];n.icon&&s.push(le(Ba,{icon:n.icon}));const o=n.style||{};return n.show===!1&&(o.display="none"),le("li",{class:this.selectIndex===i?"selected":"","data-title":n.title,"data-tooltip-direction":this.tooltipDirection,style:o,onClick:()=>{this.selectIndex===i&&this.allowClose?this.selectIndex=-1:this.selectIndex=i}},s)}))];return this.slots.forEach((n,i)=>{const s=i!==this.selectIndex||n.props.show===!1?{display:"none"}:{};this.to?a.push(le(dn,{to:this.to},le("div",{class:"magic-navbar-body",style:s},n))):a.push(le("div",{class:"magic-navbar-body",style:s},n))}),le("div",{class:`magic-navbar magic-navbar__${this.direction}`+(this.reverse?" reverse":"")},a)}},tr=Object.freeze(Object.defineProperty({__proto__:null,default:er},Symbol.toStringTag,{value:"Module"})),ar=`.magic-tab{width:100%;overflow:hidden;flex-wrap:nowrap;white-space:nowrap;transition:.3s}.magic-tab ul{overflow-x:auto}.magic-tab ul li{display:inline-block;cursor:pointer;padding:0 10px;height:24px;line-height:24px}.magic-tab ul li.selected,.magic-tab ul li:hover,.magic-tab.magic-script-tab ul li.selected:hover,.magic-tab ul li.draggable-target-item{background-color:var(--main-hover-background-color)}.magic-tab.magic-script-tab{border-bottom:1px solid var(--main-border-color);height:30px;position:absolute}.magic-tab.magic-script-tab ul li{height:30px;line-height:30px;border-bottom:3px solid transparent}.magic-tab.magic-script-tab ul li.selected{border-bottom-color:var(--tab-selected-border-color);background-color:var(--tab-selected-background-color)} -`,nr=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"}));var ir={props:{tabs:Array,className:String,value:Object,allowClose:{type:Boolean}},emits:["update:value","change","close","item-contextmenu","before-change"],setup(e){const t=U({}),a=U({});function n(o,r,l){switch(l){case"dragstart":t.value=o,r.stopPropagation();break;case"dragenter":a.value=o,r.stopPropagation();break;case"dragend":if(t.value!==a.value){const u=e.tabs.indexOf(t.value),d=e.tabs.indexOf(a.value);e.tabs.splice(u,1),e.tabs.splice(d,0,t.value)}a.value={},r.stopPropagation();break;case"dragover":t.value!==a.value&&r.preventDefault();break}}const i=U({});function s(o){let r=o.wheelDelta||o.detail;i.value.value.el.scrollLeft+=r>0?-100:100}return{selectIndex:U(0),draggableItem:t,draggableTargetItem:a,tabDraggable:n,scrollbar:i,scrollbarHandler:s,scrollId:"",scrollItem:U(null)}},mounted(){be(()=>{this.scrollbar.value.el.addEventListener("DOMMouseScroll",this.scrollbarHandler,!1),this.scrollbar.value.el.addEventListener("mousewheel",this.scrollbarHandler,!1)})},methods:{scrollIntoView(e){this.scrollId="s"+new Date().getTime()+parseInt(Math.random()*1e7),this.scrollItem=e,be(()=>{const t=document.querySelector("#"+this.scrollId);t&&t.scrollIntoView(!0)})}},destroyed(){be(()=>{this.scrollbar.value.el.removeEventListener("DOMMouseScroll",this.scrollbarHandler),this.scrollbar.value.el.removeEventListener("mousewheel",this.scrollbarHandler)})},render(){const e=this.tabs&&le("ul",this.tabs.map((t,a)=>{const n=[this.$slots.default({tab:t})];return this.allowClose&&n.push(le(Ba,{icon:"close",size:"12px",style:{marginLeft:"5px"},onClick:i=>{this.$emit("close",t),i.stopPropagation(),i.preventDefault()}})),le("li",{class:[this.value===t?"selected":"",t===this.draggableTargetItem?"draggable-target-item":""],id:this.scrollItem===t||this.scrollItem===t.id?this.scrollId:void 0,onClick:i=>{this.value!==t&&(this.$emit("before-change",this.value),this.$emit("update:value",t),this.$emit("change",t)),i.stopPropagation(),i.preventDefault()},onMousedown:i=>{i.which===2&&this.allowClose&&this.$emit("close",t)},onContextmenu:i=>{this.$emit("item-contextmenu",i,t,a),i.preventDefault()},draggable:!0,onDragenter:i=>this.tabDraggable(t,i,"dragenter"),onDragstart:i=>this.tabDraggable(t,i,"dragstart"),onDragend:i=>this.tabDraggable(t,i,"dragend"),onDragover:i=>this.tabDraggable(t,i,"dragover")},n)}));return this.scrollbar.value=e,le("div",{class:"magic-tab none-select"+(this.className?" "+this.className:"")},e)}},sr=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"}));const or={class:"magic-table-row"},Un={__name:"magic-table-column",props:{title:String,row:Object,flex:String,width:String,align:String},setup(e){return(t,a)=>(v(),k("div",or,[St(t.$slots,"default",{row:e.row})]))}};var rr=Object.freeze(Object.defineProperty({__proto__:null,default:Un},Symbol.toStringTag,{value:"Module"})),lr=`.magic-table{display:flex;flex-direction:column;box-sizing:border-box}.magic-table .magic-table-body{flex:1;overflow:auto}.magic-table .magic-table-header,.magic-table .magic-table-body .magic-table-row{display:flex;height:var(--magic-table-row-height);line-height:var(--magic-table-row-height);border-bottom:1px solid var(--main-border-color)}.magic-table .magic-table-body .magic-table-row:hover{background-color:var(--main-hover-background-color)}.magic-table .magic-table-column{flex:1;display:inline-flex}.magic-table .magic-table-column span:last-child{flex:1;overflow:hidden;text-overflow:ellipsis;width:0px;white-space:pre}.magic-table .magic-table-column .magic-select{width:100%}.magic-table__border .magic-table-body .magic-table-row{border-bottom:1px solid var(--table-border-color)}.magic-table__border .magic-table-column:not(:last-child){border-right:1px solid var(--table-border-color)} -`,cr=Object.freeze(Object.defineProperty({__proto__:null,default:lr},Symbol.toStringTag,{value:"Module"}));var ur={props:{data:{type:Array,default:[]},width:String,border:{type:Boolean,default:!1},align:{type:String,default:"center"}},emits:["clickRow","contextmenu","loadNext"],render(){const e=this.$slots.default(),t=a=>{a=a||{};let n=[];if(a.width){let i=`width: ${a.width}`;!a.width.endsWith("%")&&!isNaN(a.width)&&(i+="px"),n.push(i),n.push("flex:none")}else a.flex&&n.push(`flex: ${a.flex}`);return(a.align||this.align)&&n.push(`justify-content: ${a.align||this.align};text-align: ${a.align||this.align}`),n.join(";")};return le("div",{class:"magic-table"+(this.border?" magic-table__border":"")},[le("div",{class:"magic-table-header none-select"},e.map(a=>le("div",{class:"magic-table-column",title:a.props.title,style:t(a.props)},le("span",a.props.title)))),le("div",{class:"magic-table-body",onScroll:a=>{a.target.scrollTop+a.target.offsetHeight+40>=a.target.scrollHeight&&this.$emit("loadNext")}},this.data.map((a,n)=>le(Un,{row:a,onClick:()=>{this.$emit("clickRow",n)}},{default:()=>e.map(i=>le("div",{class:"magic-table-column",onContextmenu:s=>{this.$emit("contextmenu",s,a),s.stopPropagation(),s.preventDefault()},style:t(i.props)},i.children.default({row:a})))})))])}},dr=Object.freeze(Object.defineProperty({__proto__:null,default:ur},Symbol.toStringTag,{value:"Module"})),pr=`.magic-tree{position:relative;overflow:auto}.magic-tree>ul{position:absolute;top:0;left:0}.magic-tree .magic-tree-item{height:20px;line-height:20px;transition:.3s;word-break:break-all;white-space:nowrap}.magic-tree .magic-tree-item:hover,.magic-tree .magic-tree-item.selected,.magic-tree .magic-tree-item.draggable-target-item{background-color:var(--tree-hover-background-color)}.magic-tree .magic-tree-item .magic-icon{fill:var(--tree-icon-color);margin-right:2px}.magic-tree ul{max-height:99999px;min-width:100%}.magic-tree li{white-space:nowrap;word-break:break-all}.magic-tree .hide{opacity:0;max-height:0;position:relative}.magic-tree svg:not(.root) .magic-icon-datasource{fill:#089910} -`,_r=Object.freeze(Object.defineProperty({__proto__:null,default:pr},Symbol.toStringTag,{value:"Module"}));var hr={props:{data:Array,sort:Boolean,descending:Boolean,filter:String,filterText:Function,selected:Object,draggable:{type:Boolean,default:!1},onMove:{type:Function,defeault:()=>new Promise(e=>e(!0))}},emits:["drag","contextmenu","onMove","itemClick"],setup(e,t){const a=t.emit,n=We({item:{},itemParent:{},target:{},targetParent:{}});function i(s,o,r,l){function u(){return!(n.item===n.target||n.itemParent===n.target||!n.target.folder&&n.itemParent===n.targetParent)}switch(l){case"dragstart":n.item=o,n.itemParent=s,r.stopPropagation();break;case"dragenter":n.target=o,n.targetParent=s,r.stopPropagation();break;case"dragover":u()&&r.preventDefault();break;case"dragend":if(!u())break;e.onMove(o,n.target||n.targetParent).then(d=>{if(d){const g=n.itemParent||{children:e.data};g.children.splice(g.children.indexOf(o),1),n.target.folder?(n.target.children=n.target.children||[],n.target.children.push(n.item)):(n.targetParent.children=n.targetParent.children||[],n.targetParent.children.push(n.item)),e.sort&&kt(n.target.folder?n.target.children:n.targetParent.children,e.descending,"name"),n.target={},n.targetParent={}}}),r.stopPropagation();break}a("drag",l,n,r)}return e.sort&&(kt(e.data,e.descending,"name","children"),et(()=>e.data,s=>{kt(e.data,e.descending,"name","children")}),et(()=>e.descending,s=>{kt(e.data,e.descending,"name","children")})),{draggableItem:n,itemDraggable:i}},data(){return{scrollId:"",scrollItem:U(null)}},methods:{scrollIntoView(e){this.scrollId="s"+new Date().getTime()+parseInt(Math.random()*1e7),this.scrollItem=e;const t=a=>{let n=!1;for(const i in a){const s=a[i];if(n=s===e){s.opened!==void 0&&(s.opened=!0);break}else if(s.children&&s.children.length>0&&(n=t(s.children))){s.opened=!0;break}}return n};t(this.data)&&be(()=>{const a=document.querySelector("#"+this.scrollId);a&&a.scrollIntoView(!0)})}},render(){const e=a=>this.filter?this.filterText(Be(a)).indexOf(this.filter)>-1||a.children&&a.children.some(n=>e(n)):!0,t=(a,n,i)=>{const s=i>0?{paddingLeft:`${i*17}px`}:{};return e(n)&&le("li",{onDblclick:o=>{n.folder&&(n.opened=!n.opened),o.stopPropagation(),o.preventDefault()},onClick:o=>{this.$emit("itemClick",n),o.stopPropagation(),o.preventDefault()},onContextmenu:o=>{this.$emit("contextmenu",n,o),o.stopPropagation(),o.preventDefault()},draggable:this.draggable,onDragenter:o=>this.itemDraggable(a,n,o,"dragenter"),onDragstart:o=>this.itemDraggable(a,n,o,"dragstart"),onDragend:o=>this.itemDraggable(a,n,o,"dragend"),onDragover:o=>this.itemDraggable(a,n,o,"dragover")},[le("div",{class:["magic-tree-item",n===this.draggableItem.target?"draggable-target-item":"",n===this.selected?"selected":""],style:s,id:this.scrollItem===n||this.scrollItem===n.id?this.scrollId:void 0},n.folder?this.$slots.folder({item:n}):this.$slots.file({item:n})),n.folder&&n.opened&&le("ul",{class:n.opened&&"opened"||"hide"},n.children&&n.children.map(o=>t(n,o,i+1)))])};return le("div",{class:"magic-tree none-select"},le("ul",{},this.data&&this.data.map(a=>t(null,a,0))))}},fr=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"}));const gr=["onMousedown"],mr={__name:"magic-dialog",props:{value:{type:Boolean,default:!0},className:String,showClose:{type:Boolean,default:!0},shade:{type:Boolean,default:!0},padding:{type:String,default:"5px 10px"},height:{type:String,default:"auto"},width:{type:String,default:"auto"},moveable:{type:Boolean,default:!0},overflow:{type:String,default:"auto"},top:String,maxHeight:String,maxWidth:String,contentHeight:String,title:String,content:String,onClose:Function},emits:["update:value","onClose"],setup(e,{expose:t,emit:a}){const n=e,i=U(n.top||"auto"),s=U("auto"),o=U("relative"),r=U(null);function l(){a("update:value",!1)}const u=()=>{a("close"),typeof n.onClose=="function"&&n.onClose(),l()};let d,g=!1,f,E;function m(A){n.moveable&&(d=A,f=A.target.parentNode.getBoundingClientRect(),E=document.getElementsByClassName("magic-editor")[0].getBoundingClientRect(),g=!0)}function L(A){if(n.moveable&&g){let M=Math.min(Math.max(f.top+(A.pageY-d.pageY),E.y),E.y+E.height-f.height),I=Math.min(Math.max(f.left+(A.pageX-d.pageX),E.x),E.x+E.width-f.width);i.value=M+"px",s.value=I+"px",o.value="absolute"}}let C=!1;const x=()=>{!C&&r.value&&(o.value="absolute",s.value=r.value.getBoundingClientRect().x+"px"),C=!0};n.top&&zn(x);const b=A=>{n.showClose&&A.keyCode===27&&u()};function S(A){g=!1}return t({close:u}),(A,M)=>{const I=y("magic-icon");return e.value?(v(),j(dn,{key:0,to:".magic-editor"},[R("div",{class:ve(["magic-dialog",(e.shade?"magic-dialog__shade":"")+(e.className?" "+e.className:"")]),tabindex:"1",onMousemove:L,onMouseup:S,onKeydown:b},[R("div",{class:"magic-dialog-main",style:je({position:o.value,top:i.value,left:s.value,width:e.width,height:e.height,"max-width":e.maxWidth}),ref_key:"dialog",ref:r},[R("div",{class:ve(["magic-dialog-header none-select",{moveable:e.moveable}]),onMousedown:m},[pe(F(e.title)+" ",1),e.showClose?(v(),k("span",{key:0,onMousedown:ye(u,["stop"])},[_(I,{icon:"close"})],40,gr)):X("",!0)],34),R("div",{class:"magic-dialog-body",style:je({padding:e.padding,"max-height":e.maxHeight,height:e.contentHeight,overflow:e.overflow})},[e.content?(v(),k(te,{key:0},[pe(F(e.content),1)],64)):St(A.$slots,"default",{key:1},void 0,!0)],4)],4)],34)])):X("",!0)}}};var vr=q(mr,[["__scopeId","data-v-3e8f0d71"]]),br=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"}));const Er={class:"magic-notify"},yr=["onClick"],Tr=["innerHTML"],Sr=["innerHTML"],xr={__name:"magic-notify",setup(e){const t={error:'',warning:'',info:''},a=We([]),n=s=>{const o=a.findIndex(r=>s.id===r.id);return o>-1&&a.splice(o,1),!0},i=s=>{s.icon=t[s.icon]||t.info,s.id=s.id||parseInt(Math.random()*1e7),n(s),a.push(s),s.duration&&setTimeout(()=>n(s),parseInt(s.duration))};return T.$on($.NOTIFY,i),(s,o)=>{const r=y("magic-icon"),l=y("magic-button"),u=y("magic-button-group");return v(),k("div",Er,[(v(!0),k(te,null,fe(a,(d,g)=>(v(),k("div",{class:"magic-notify-item",key:g},[R("div",{class:"close",onClick:f=>n(d)},[_(r,{icon:"close"})],8,yr),R("h3",null,[(v(),k("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",innerHTML:d.icon},null,8,Tr)),pe(F(d.title),1)]),R("p",{innerHTML:d.content},null,8,Sr),d.buttons?(v(),j(u,{key:0},{default:w(()=>[(v(!0),k(te,null,fe(d.buttons,(f,E)=>(v(),j(l,{key:E,value:f.title,type:"link",onClick:()=>n(d)&&f.onClick()},null,8,["value","onClick"]))),128))]),_:2},1024)):X("",!0)]))),128))])}}};var Or=q(xr,[["__scopeId","data-v-4a37ceea"]]),Rr=Object.freeze(Object.defineProperty({__proto__:null,default:Or},Symbol.toStringTag,{value:"Module"}));const Ar={__name:"magic-button-group",props:{align:{type:String,default:"left"}},setup(e){return(t,a)=>(v(),k("div",{class:ve(["magic-button-group",e.align])},[St(t.$slots,"default",{},void 0,!0)],2))}};var Cr=q(Ar,[["__scopeId","data-v-70c60ab6"]]),Ir=Object.freeze(Object.defineProperty({__proto__:null,default:Cr},Symbol.toStringTag,{value:"Module"}));const kr={__name:"magic-button",props:{value:String,type:String},setup(e){return(t,a)=>(v(),k("button",{onClick:a[0]||(a[0]=ye(n=>t.$emit("onClick"),["stop"])),class:ve(["magic-button",e.type]),type:"button"},F(e.value),3))}};var Lr=q(kr,[["__scopeId","data-v-d216a404"]]),Nr=Object.freeze(Object.defineProperty({__proto__:null,default:Lr},Symbol.toStringTag,{value:"Module"}));const wr=["checked"],Dr={__name:"magic-checkbox",props:{value:{type:[Number,Boolean],default:()=>!1},checkedHalf:{type:Boolean,default:!1}},setup(e){const t=new Date().getTime()+""+Math.floor(Math.random()*1e3);return(a,n)=>(v(),k("div",{class:"magic-checkbox",onClick:n[1]||(n[1]=ye(i=>a.$emit("click",i),["stop"]))},[R("input",{id:t,ref:"checkbox",type:"checkbox",onChange:n[0]||(n[0]=()=>{a.$emit("update:value",a.$refs.checkbox.checked),a.$emit("change",a.$refs.checkbox.checked)}),checked:e.value},null,40,wr),R("label",{for:t,class:ve({checkedHalf:e.checkedHalf&&e.value})},null,2)]))}};var Mr=q(Dr,[["__scopeId","data-v-61c815ba"]]),Pr=Object.freeze(Object.defineProperty({__proto__:null,default:Mr},Symbol.toStringTag,{value:"Module"}));const Ur={class:"magic-file"},$r=["accept","multiple"],Fr={__name:"magic-file",props:{value:[Object,String],placeholder:{type:String,default:c("message.chooseFile")},accept:String,multiple:{type:Boolean,default:!1},border:{type:Boolean,default:!0}},emits:["update:value"],setup(e,{emit:t}){const a=e,n=U(null),i=U(null),s=()=>{n.value.files[0]&&(i.value=Array.from(n.value.files).map(o=>o.name).join(",")),t("update:value",a.multiple?n.value.files:n.value.files[0])};return(o,r)=>{const l=y("magic-input"),u=y("magic-icon");return v(),k("div",Ur,[R("input",{type:"file",style:{display:"none"},ref_key:"file",ref:n,onChange:s,accept:e.accept,multiple:e.multiple},null,40,$r),_(l,{readonly:!0,style:{width:"100%"},placeholder:e.placeholder,onClick:()=>o.$refs.file.click(),value:i.value,border:e.border},null,8,["placeholder","onClick","value","border"]),_(u,{icon:"upload"})])}}};var Br=q(Fr,[["__scopeId","data-v-a16f8c8a"]]),Hr=Object.freeze(Object.defineProperty({__proto__:null,default:Br},Symbol.toStringTag,{value:"Module"}));const Vr=["value","placeholder","readonly","type","autocomplete"],jr={__name:"magic-input",props:{value:[String,Number,Object],placeholder:String,defaultValue:[String,Number,Object],readonly:{type:Boolean,default:!1},type:{type:String,default:"text"},width:{type:String,default:"100%"},border:{type:Boolean,default:!0},onEnter:{type:Function,default:()=>{}}},emits:["update:value"],setup(e,{emit:t}){const a=e,n=Yn(()=>a.type==="password"?"new-password":null);!a.value&&a.defaultValue&&t("update:value",a.defaultValue);const i={width:a.width};return(s,o)=>(v(),k("input",{class:ve(["magic-input",{"magic-input__border":e.border}]),value:e.value,placeholder:e.placeholder,readonly:e.readonly,style:i,type:e.type,onInput:o[0]||(o[0]=r=>s.$emit("update:value",r.target.value)),autocomplete:h(n),onKeypress:o[1]||(o[1]=qn(ye((...r)=>e.onEnter&&e.onEnter(...r),["stop"]),["enter"]))},null,42,Vr))}};var Gr=q(jr,[["__scopeId","data-v-15b9b158"]]),zr=Object.freeze(Object.defineProperty({__proto__:null,default:Gr},Symbol.toStringTag,{value:"Module"}));const Yr={key:0},qr=["placeholder"],Kr=["onClick"],Wr={__name:"magic-select",props:{value:[Object,String,Number],options:Array,defaultSelect:[Object,String,Number],width:String,border:{type:Boolean,default:!0},placeholder:String,inputable:{type:Boolean,default:!1}},emits:["update:value","select"],setup(e,{emit:t}){const a=e;document.body.addEventListener("click",()=>i.value=!1);const n=U("-2px"),i=U(!1),s=U("auto"),o=U("0px"),r=_e({get(){return a.value},set(E){t("update:value",E)}}),l=_e(()=>{const E=a.options.find(m=>m.value===a.value)||a.options.find(m=>m.value===a.defaultSelect);return E&&E.text||""}),u=E=>{t("update:value",E),t("select",E),i.value=!1},d=oe("ELEMENT_ROOT"),g=(E,m)=>m+E.scrollTop>0?E.scrollTop:E.parentElement?g(E.parentElement,m+E.scrollTop):E.scrollTop,f=(E,m)=>{n.value=-g(E,0)-1+"px",i.value=!0,be(()=>{o.value=-(window.pageXOffset+1)+"px",s.value=E.clientWidth+"px";let L=m.offsetHeight;m.offsetTop+L+20>d.value.offsetTop+d.value.offsetHeight&&(n.value=-(L+E.offsetHeight)+"px")})};return(E,m)=>{const L=y("magic-icon");return v(),k("div",{class:ve([{inputable:e.inputable,border:e.border},"magic-select not-select"]),style:je({width:e.width}),onClick:m[2]||(m[2]=ye(C=>f(E.$refs.container,E.$refs.selectList),["stop"])),ref:"container"},[e.inputable?X("",!0):(v(),k("span",Yr,F(h(l)),1)),e.inputable?bt((v(),k("input",{key:1,ref:"input","onUpdate:modelValue":m[0]||(m[0]=C=>pn(r)?r.value=C:null),autocomplete:"off",type:"text",onInput:m[1]||(m[1]=C=>u(C.target.value)),placeholder:e.placeholder},null,40,qr)),[[Kn,h(r)]]):X("",!0),bt(R("ul",{style:je({width:s.value,marginTop:n.value,marginLeft:o.value}),ref:"selectList"},[(v(!0),k(te,null,fe(e.options,C=>(v(),k("li",{key:C.value,onClick:ye(x=>u(C.value),["stop"])},F(C.text),9,Kr))),128))],4),[[Ut,i.value]]),_(L,{icon:"arrow-bottom"})],6)}}};var Xr=q(Wr,[["__scopeId","data-v-9b6dc9a6"]]),Jr=Object.freeze(Object.defineProperty({__proto__:null,default:Xr},Symbol.toStringTag,{value:"Module"}));const Qr=["placeholder","value"],Zr={__name:"magic-textarea",props:{value:String,placeholder:String},setup(e){return(t,a)=>(v(),k("textarea",{class:"magic-textarea",placeholder:e.placeholder,value:e.value,onInput:a[0]||(a[0]=n=>t.$emit("update:value",n.target.value))},null,40,Qr))}};var el=q(Zr,[["__scopeId","data-v-ca6693f6"]]),tl=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"}));const al={__name:"magic-avatar-group",props:{users:Array,max:Number,size:{type:Number,default:22}},setup(e){const t=e,a=_e(()=>({height:t.size+"px",lineHeight:t.size+"px"})),n=_e(()=>t.users.slice(0,t.max||t.users.length));return(i,s)=>{const o=y("magic-avatar");return t.users&&t.users.length>0?(v(),k("div",{key:0,class:"magic-avatar-group",style:je(h(a))},[(v(!0),k(te,null,fe(h(n),(r,l)=>(v(),j(o,{key:l,user:r,size:e.size},null,8,["user","size"]))),128)),t.users.length>h(n).length?(v(),j(o,{key:0,text:`${e.max}+`,size:e.size},null,8,["text","size"])):X("",!0)],4)):X("",!0)}}};var nl=q(al,[["__scopeId","data-v-511f7f80"]]),il=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"}));const sl=["title"],ol={__name:"magic-avatar",props:{user:Object,text:String,size:{type:Number,default:22}},setup(e){const t=e,a=["#1abc9c","#2ecc71","#3498db","#9b59b6","#16a085","#27ae60","#2980b9","#8e44ad","#f1c40f","#e67e22","#e74c3c","#eca0f1","#95a5a6","#f39c12","#d35400","#c0392b","#bdc3c7","#7f8c8d"],n=_e(()=>({width:t.size+"px",height:t.size+"px",lineHeight:t.size+"px",borderRadius:t.size/2+"px",backgroundColor:t.text&&"#bdc3c7"||a[Xi(`${t.user.cid}`)%a.length]})),i=_e(()=>t.text||t.user.username.substring(0,1)),s=_e(()=>t.user?`${c("message.username")}\uFF1A${t.user.username} -IP\uFF1A${t.user.ip||"unknown"}`:void 0);return(o,r)=>(v(),k("div",{class:"magic-avatar",style:je(h(n)),title:h(s)},F(h(i)),13,sl))}};var rl=q(ol,[["__scopeId","data-v-73f02f44"]]),ll=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"}));const cl=["width"],ul=["x","fill"],dl={__name:"magic-text-icon",props:{icon:String|Array},setup(e){const t=e,a={GET:"#0cbb52",POST:"#FFB400",DELETE:["DEL","#EB2013"],PUT:"#097BED",function:["Fn","#9012FE"]},n=_e(()=>{let i=t.icon,s=Array.isArray(i);s||(i=a[t.icon],s=i!==void 0&&Array.isArray(i));const o=s?i[0]:t.icon,r=o.length*9,l=s?i[1]:i||"var(--main-icon-color)";return{width:r,color:l,text:o}});return(i,s)=>(v(),k("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:h(n).width,height:"12","font-size":"10","font-weight":"bolder","font-family":"inherit"},[R("text",{x:h(n).width/2,y:"8",fill:h(n).color,style:{"dominant-baseline":"middle","text-anchor":"middle"}},F(h(n).text),9,ul)],8,cl))}};var pl=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"}));const _l={class:"magic-api-body"},hl={__name:"magic-api-body",props:{opened:Object},setup(e){const t=U(ee("magic-api-request-body")),a=[{title:"Json",selected:!0,selectable:!0,icon:"json",onSelect:()=>t.value=ee("magic-api-request-body")},{title:c("message.view"),selectable:!0,icon:"structure",onSelect:()=>t.value=ee("magic-api-request-structure")}];return(n,i)=>{const s=y("magic-panel-toolbar");return v(),k("div",_l,[_(s,{toolbars:a}),R("div",null,[(v(),j(ee(t.value)))])])}}};var fl=q(hl,[["__scopeId","data-v-3f309722"]]),gl=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"}));const ml={__name:"magic-api-description",setup(e){const t=oe("info");return(a,n)=>{const i=y("magic-textarea");return v(),j(i,{value:h(t).description,"onUpdate:value":n[0]||(n[0]=s=>h(t).description=s)},null,8,["value"])}}};var vl=Object.freeze(Object.defineProperty({__proto__:null,default:ml},Symbol.toStringTag,{value:"Module"}));const bl={class:"magic-api-group"},El={__name:"magic-api-group",setup(e){const t=oe("info"),a=[{title:c("api.navbars.path"),component:ee("magic-api-path")},{title:c("api.navbars.groupOption"),component:ee("magic-api-option")}],n=()=>{const i=t.value;Y.sendJson("/resource/folder/save",{id:i.id,name:i.name,parentId:i.parentId,type:i.type,path:i.path,paths:i.paths,options:i.options})};return(i,s)=>{const o=y("magic-input"),r=y("magic-button"),l=y("magic-navbar-item"),u=y("magic-navbar");return v(),k(te,null,[R("div",bl,[R("form",null,[R("label",null,F(h(c)("resource.form.groupName")),1),_(o,{value:h(t).name,"onUpdate:value":s[0]||(s[0]=d=>h(t).name=d),placeholder:h(c)("resource.form.placeholder.name",h(c)("api.name")),width:"250px"},null,8,["value","placeholder"]),R("label",null,F(h(c)("resource.form.groupPath")),1),_(o,{value:h(t).path,"onUpdate:value":s[1]||(s[1]=d=>h(t).path=d),placeholder:h(c)("resource.form.placeholder.path",h(c)("api.name")),width:"auto",style:{flex:"1"}},null,8,["value","placeholder"]),_(r,{value:h(c)("message.save"),onOnClick:n},null,8,["value"])])]),_(u,{direction:"horizontal",ref:"navbar",style:{flex:"1"},"allow-close":!1},{default:w(()=>[(v(),k(te,null,fe(a,(d,g)=>_(l,Et({key:g},d),{default:w(()=>[(v(),j(ee(d.component)))]),_:2},1040)),64))]),_:1},512)],64)}}};var yl=q(El,[["__scopeId","data-v-07a9bc9f"]]),Tl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"}));const Sl={class:"magic-panel-api"},xl={__name:"magic-api-header",setup(e){const t=oe("info"),a=U(-1);return(n,i)=>{const s=y("magic-panel-common-toolbar"),o=y("magic-checkbox"),r=y("magic-table-column"),l=y("magic-input"),u=y("magic-select"),d=y("magic-table");return v(),k("div",Sl,[_(s,{index:a.value,"onUpdate:index":i[0]||(i[0]=g=>a.value=g),value:h(t).headers},null,8,["index","value"]),_(d,{data:h(t).headers,border:"",onClickRow:i[1]||(i[1]=g=>a.value=g),align:"center"},{default:w(()=>[_(r,{title:h(c)("message.required"),width:"65"},{default:w(({row:g})=>[_(o,{value:g.required,"onUpdate:value":f=>g.required=f},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:"Key"},{default:w(({row:g})=>[_(l,{value:g.name,"onUpdate:value":f=>g.name=f,border:!1},null,8,["value","onUpdate:value"])]),_:1}),_(r,{title:"Value"},{default:w(({row:g})=>[_(l,{value:g.value,"onUpdate:value":f=>g.value=f,border:!1},null,8,["value","onUpdate:value"])]),_:1}),_(r,{title:h(c)("message.parameterType"),width:"135"},{default:w(({row:g})=>[_(u,{options:n.$REQUEST_SIMPLE_TYPES,value:g.dataType,"onUpdate:value":f=>g.dataType=f,"default-select":n.$DEFAULT_REQUEST_SIMPLE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1},8,["title"]),_(r,{title:h(c)("message.defaultValue")},{default:w(({row:g})=>[_(l,{value:g.defaultValue,"onUpdate:value":f=>g.defaultValue=f,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("api.validateType"),width:"115"},{default:w(({row:g})=>[_(u,{options:n.$VALIDATE_TYPES,value:g.validateType,"onUpdate:value":f=>g.validateType=f,"default-select":n.$DEFAULT_VALIDATE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1},8,["title"]),_(r,{title:h(c)("api.expression"),width:"220"},{default:w(({row:g})=>[_(l,{value:g.expression,"onUpdate:value":f=>g.expression=f,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("api.validate"),width:"165"},{default:w(({row:g})=>[_(l,{value:g.error,"onUpdate:value":f=>g.error=f,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("message.description"),flex:"2"},{default:w(({row:g})=>[_(l,{value:g.description,"onUpdate:value":f=>g.description=f,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"])]),_:1},8,["data"])])}}};var Ol=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"}));const Rl={class:"magic-api-info"},Al={__name:"magic-api-info",setup(e){const t=oe("info"),a=[{title:c("api.navbars.parameter"),component:ee("magic-api-parameter")},{title:c("api.navbars.header"),component:ee("magic-api-header")},{title:c("api.navbars.path"),component:ee("magic-api-path")},{title:c("api.navbars.body"),component:ee("magic-api-body")},{title:c("api.navbars.option"),component:ee("magic-api-option")},{title:c("api.navbars.description"),component:ee("magic-api-description")}];return(n,i)=>{const s=y("magic-select"),o=y("magic-input"),r=y("magic-navbar-item"),l=y("magic-navbar");return v(),k(te,null,[R("div",Rl,[R("form",null,[R("label",null,F(h(c)("api.form.method")),1),_(s,{width:"100px",options:n.$REQUEST_METHODS,"default-select":n.$DEFAULT_REQUEST_METHOD,value:h(t).method,"onUpdate:value":i[0]||(i[0]=u=>h(t).method=u)},null,8,["options","default-select","value"]),R("label",null,F(h(c)("api.form.name")),1),_(o,{value:h(t).name,"onUpdate:value":i[1]||(i[1]=u=>h(t).name=u),placeholder:h(c)("api.form.placeholder.name"),width:"200px"},null,8,["value","placeholder"]),R("label",null,F(h(c)("api.form.path")),1),_(o,{value:h(t).path,"onUpdate:value":i[2]||(i[2]=u=>h(t).path=u),placeholder:h(c)("api.form.placeholder.path"),width:"auto",style:{flex:"1"}},null,8,["value","placeholder"])])]),_(l,{direction:"horizontal",ref:"navbar",style:{flex:"1"},"allow-close":!1,"tooltip-direction":"bottom"},{default:w(()=>[(v(),k(te,null,fe(a,(u,d)=>_(r,Et({key:d},u),{default:w(()=>[(v(),j(ee(u.component)))]),_:2},1040)),64))]),_:1},512)],64)}}};var Cl=q(Al,[["__scopeId","data-v-31699d76"]]),Il=Object.freeze(Object.defineProperty({__proto__:null,default:Cl},Symbol.toStringTag,{value:"Module"}));const kl={class:"magic-panel-api"},Ll={__name:"magic-api-option",setup(e){const t=oe("info"),a=oe("options")||[],n=_e(()=>a.map(o=>({text:o[0],value:o[0],description:o[1],defaultValue:o[2]}))),i=U(-1),s=(o,r)=>{const l=a.find(u=>u[0]===o);l&&(r.description=l[1]||"",r.value=l[2]||"")};return(o,r)=>{const l=y("magic-panel-common-toolbar"),u=y("magic-select"),d=y("magic-table-column"),g=y("magic-input"),f=y("magic-table");return v(),k("div",kl,[_(l,{index:i.value,"onUpdate:index":r[0]||(r[0]=E=>i.value=E),value:h(t).options},null,8,["index","value"]),_(f,{data:h(t).options,border:"",onClickRow:r[1]||(r[1]=E=>i.value=E)},{default:w(()=>[_(d,{title:"Key",width:"20%"},{default:w(({row:E})=>[_(u,{options:h(n),value:E.name,"onUpdate:value":m=>E.name=m,"default-select":o.$DEFAULT_REQUEST_SIMPLE_TYPE,border:!1,inputable:"",onSelect:m=>s(m,E)},null,8,["options","value","onUpdate:value","default-select","onSelect"])]),_:1}),_(d,{title:"Value",width:"60%"},{default:w(({row:E})=>[_(g,{value:E.value,"onUpdate:value":m=>E.value=m,border:!1},null,8,["value","onUpdate:value"])]),_:1}),_(d,{title:h(c)("message.description"),width:"20%"},{default:w(({row:E})=>[_(g,{value:E.description,"onUpdate:value":m=>E.description=m,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"])]),_:1},8,["data"])])}}};var Nl=Object.freeze(Object.defineProperty({__proto__:null,default:Ll},Symbol.toStringTag,{value:"Module"}));const wl={class:"magic-panel-api"},Dl={__name:"magic-api-parameter",setup(e){const t=U(-1),a=oe("info");return(n,i)=>{const s=y("magic-panel-common-toolbar"),o=y("magic-checkbox"),r=y("magic-table-column"),l=y("magic-input"),u=y("magic-file"),d=y("magic-select"),g=y("magic-table");return v(),k("div",wl,[_(s,{index:t.value,"onUpdate:index":i[0]||(i[0]=f=>t.value=f),value:h(a).parameters},null,8,["index","value"]),_(g,{data:h(a).parameters,border:"",onClickRow:i[1]||(i[1]=f=>t.value=f),align:"center"},{default:w(()=>[_(r,{title:h(c)("message.required"),width:"65"},{default:w(({row:f})=>[_(o,{value:f.required,"onUpdate:value":E=>f.required=E},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:"Key"},{default:w(({row:f})=>[_(l,{value:f.name,"onUpdate:value":E=>f.name=E,border:!1},null,8,["value","onUpdate:value"])]),_:1}),_(r,{title:"Value"},{default:w(({row:f})=>[f.dataType==="MultipartFile"?(v(),j(u,{key:0,value:f.value,"onUpdate:value":E=>f.value=E,border:!1},null,8,["value","onUpdate:value"])):f.dataType==="MultipartFiles"?(v(),j(u,{key:1,value:f.value,"onUpdate:value":E=>f.value=E,border:!1,multiple:""},null,8,["value","onUpdate:value"])):(v(),j(l,{key:2,value:f.value,"onUpdate:value":E=>f.value=E,border:!1},null,8,["value","onUpdate:value"]))]),_:1}),_(r,{title:h(c)("message.parameterType"),width:"135"},{default:w(({row:f})=>[_(d,{options:n.$REQUEST_PARAMETER_TYPES,value:f.dataType,"onUpdate:value":E=>f.dataType=E,"default-select":n.$DEFAULT_REQUEST_PARAMETER_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1},8,["title"]),_(r,{title:h(c)("message.defaultValue")},{default:w(({row:f})=>[_(l,{value:f.defaultValue,"onUpdate:value":E=>f.defaultValue=E,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("api.validateType"),width:"115"},{default:w(({row:f})=>[_(d,{options:n.$VALIDATE_TYPES,value:f.validateType,"onUpdate:value":E=>f.validateType=E,"default-select":n.$DEFAULT_VALIDATE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1},8,["title"]),_(r,{title:h(c)("api.expression"),width:"220"},{default:w(({row:f})=>[_(l,{value:f.expression,"onUpdate:value":E=>f.expression=E,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("api.validate"),width:"165"},{default:w(({row:f})=>[_(l,{value:f.error,"onUpdate:value":E=>f.error=E,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("message.description"),flex:"2"},{default:w(({row:f})=>[_(l,{value:f.description,"onUpdate:value":E=>f.description=E,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"])]),_:1},8,["data"])])}}};var Ml=Object.freeze(Object.defineProperty({__proto__:null,default:Dl},Symbol.toStringTag,{value:"Module"}));const Pl={class:"magic-panel-api"},Ul={__name:"magic-api-path",setup(e){const t=U(-1),a=oe("info");return(n,i)=>{const s=y("magic-panel-common-toolbar"),o=y("magic-input"),r=y("magic-table-column"),l=y("magic-select"),u=y("magic-table");return v(),k("div",Pl,[_(s,{index:t.value,"onUpdate:index":i[0]||(i[0]=d=>t.value=d),value:h(a).paths},null,8,["index","value"]),_(u,{data:h(a).paths,border:"",onClickRow:i[1]||(i[1]=d=>t.value=d),align:"center"},{default:w(()=>[_(r,{title:"Key"},{default:w(({row:d})=>[_(o,{value:d.name,"onUpdate:value":g=>d.name=g,border:!1},null,8,["value","onUpdate:value"])]),_:1}),_(r,{title:"Value"},{default:w(({row:d})=>[_(o,{value:d.value,"onUpdate:value":g=>d.value=g,border:!1},null,8,["value","onUpdate:value"])]),_:1}),_(r,{title:h(c)("message.parameterType"),width:"135"},{default:w(({row:d})=>[_(l,{options:n.$REQUEST_SIMPLE_TYPES,value:d.dataType,"onUpdate:value":g=>d.dataType=g,"default-select":n.$DEFAULT_REQUEST_SIMPLE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1},8,["title"]),_(r,{title:h(c)("api.validateType"),width:"115"},{default:w(({row:d})=>[_(l,{options:n.$VALIDATE_TYPES,value:d.validateType,"onUpdate:value":g=>d.validateType=g,"default-select":n.$DEFAULT_VALIDATE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1},8,["title"]),_(r,{title:h(c)("api.expression"),width:"220"},{default:w(({row:d})=>[_(o,{value:d.expression,"onUpdate:value":g=>d.expression=g,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("api.validate"),width:"165"},{default:w(({row:d})=>[_(o,{value:d.error,"onUpdate:value":g=>d.error=g,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("message.description"),flex:"2"},{default:w(({row:d})=>[_(o,{value:d.description,"onUpdate:value":g=>d.description=g,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"])]),_:1},8,["data"])])}}};var $l=Object.freeze(Object.defineProperty({__proto__:null,default:Ul},Symbol.toStringTag,{value:"Module"}));const Fl={__name:"magic-api-request-body",setup(e){const t=oe("info"),a=oe("opened"),n=i=>{if(i.isFlush)return;const s=Dn(t.value.requestBody,t.value.requestBodyDefinition);s&&$a(t.value.requestBodyDefinition,s)&&T.$emit($.NOTIFY,{title:c("message.tips"),id:"requestBodyStructure",icon:"info",content:c("api.structure.content","RequestBody"),buttons:[{title:c("api.structure.ok"),onClick:()=>{t.value.requestBodyDefinition=s,a.value.requestBodyTree=aa(s)}},{title:c("message.cancel"),onClick:()=>{}}]})};return(i,s)=>{const o=y("magic-monaco-editor");return v(),j(o,{value:h(t).requestBody,"onUpdate:value":s[0]||(s[0]=r=>h(t).requestBody=r),language:"json",onChange:n},null,8,["value"])}}};var Bl=q(Fl,[["__scopeId","data-v-7f02b65d"]]),Hl=Object.freeze(Object.defineProperty({__proto__:null,default:Bl},Symbol.toStringTag,{value:"Module"}));const Vl=["onClick"],jl=["title"],Gl={key:0,align:"center",style:{flex:"1"}},zl={key:1,align:"center",style:{flex:"1"}},Yl={__name:"magic-api-request-structure",setup(e){const t=oe("opened"),a=_e(()=>{var i,s;return!t.value.requestBodyTree&&((s=(i=t.value)==null?void 0:i.item)==null?void 0:s.requestBodyDefinition)&&(t.value.requestBodyTree=aa(t.value.item.requestBodyDefinition)),(t.value.requestBodyTree||[]).filter(o=>o.display)}),n=i=>{const s=t.value.requestBodyTree.findIndex(r=>r===i),o=i.level;i.expand=!i.expand;for(let r=s+1,l=t.value.requestBodyTree.length;ro)u.display=i.expand;else break}};return(i,s)=>{const o=y("magic-icon"),r=y("magic-table-column"),l=y("magic-checkbox"),u=y("magic-select"),d=y("magic-input"),g=y("magic-table");return v(),j(g,{data:h(a),border:""},{default:w(()=>[_(r,{title:h(c)("api.field")},{default:w(({row:f})=>[R("span",{style:je({paddingLeft:`${(f.level+(f.folder?0:1))*16}px`}),onClick:E=>n(f)},[f.folder?(v(),j(o,{key:0,icon:f.expand?"arrow-bottom":"arrow-right"},null,8,["icon"])):X("",!0)],12,Vl),R("span",{title:f.name||"-"},F(f.name||"-"),9,jl)]),_:1},8,["title"]),_(r,{title:h(c)("message.required"),width:"65"},{default:w(({row:f})=>[_(l,{value:f.node.required,"onUpdate:value":E=>f.node.required=E},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("message.type"),width:"80"},{default:w(({row:f})=>[_(u,{options:i.$BODY_DATA_TYPES,value:f.node.dataType,"onUpdate:value":E=>f.node.dataType=E,border:!1},null,8,["options","value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:"Value",flex:"2"},{default:w(({row:f})=>{var E;return[f.folder?(v(),k("p",Gl,"-")):(v(),k("span",{key:1,class:ve(["magic-data-type",(E=f.node.dataType)==null?void 0:E.toLowerCase()])},F(f.node.value),3))]}),_:1}),_(r,{title:h(c)("message.defaultValue")},{default:w(({row:f})=>[_(d,{value:f.node.defaultValue,"onUpdate:value":E=>f.node.defaultValue=E,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("api.validateType"),width:"115"},{default:w(({row:f})=>[_(u,{options:i.$VALIDATE_TYPES,value:f.node.validateType,"onUpdate:value":E=>f.node.validateType=E,"default-select":i.$DEFAULT_VALIDATE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1},8,["title"]),_(r,{title:h(c)("api.expression")},{default:w(({row:f})=>[_(d,{value:f.node.expression,"onUpdate:value":E=>f.node.expression=E,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("api.validate")},{default:w(({row:f})=>[_(d,{value:f.node.error,"onUpdate:value":E=>f.node.error=E,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("message.description")},{default:w(({row:f})=>[f.name?(v(),j(d,{key:0,value:f.node.description,"onUpdate:value":E=>f.node.description=E,border:!1},null,8,["value","onUpdate:value"])):(v(),k("p",zl,"-"))]),_:1},8,["title"])]),_:1},8,["data"])}}};var ql=q(Yl,[["__scopeId","data-v-bda6618c"]]),Kl=Object.freeze(Object.defineProperty({__proto__:null,default:ql},Symbol.toStringTag,{value:"Module"}));const Wl=["src"],Xl={__name:"magic-api-response-body",setup(e){const t=oe("info"),a=oe("opened"),n=U(null),i=oe("ELEMENT_ROOT"),s=_e(()=>t.value.responseBody||""),o=_e(()=>{if(a.value.responseBlob){const l=a.value.responseHeaders["content-disposition"];if(l){const u=l.replace(/.*filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/,"$1");Ua(a.value.responseBlobValue,u);return}return URL.createObjectURL(a.value.responseBlobValue)}}),r=l=>{const u=getComputedStyle(i.value),d=n.value.contentWindow.document.body.style;d.color=u.getPropertyValue("--main-color"),d.backgroundColor=u.getPropertyValue("--main-background-color")};return(l,u)=>{const d=y("magic-monaco-editor"),g=y("magic-empty");return h(a).responseBlob?h(o)?(v(),k("iframe",{key:1,src:h(o),onLoad:r,ref_key:"iframe",ref:n},null,40,Wl)):(v(),j(g,{key:2,text:h(c)("message.empty",h(c)("message.responseBody"))},null,8,["text"])):(v(),j(d,{key:0,value:h(s),"onUpdate:value":u[0]||(u[0]=f=>pn(s)?s.value=f:null),language:"json",readonly:!0},null,8,["value"]))}}};var Jl=q(Xl,[["__scopeId","data-v-27b4e47a"]]),Ql=Object.freeze(Object.defineProperty({__proto__:null,default:Jl},Symbol.toStringTag,{value:"Module"}));const Zl=["title"],ec=["title"],tc={__name:"magic-api-response-header",setup(e){const t=oe("opened"),a=_e(()=>Object.keys(t.value.responseHeaders||{}).map(n=>({key:n,value:t.value.responseHeaders[n]})));return(n,i)=>{const s=y("magic-table-column"),o=y("magic-table");return v(),j(o,{data:h(a),border:""},{default:w(()=>[_(s,{title:"Key"},{default:w(({row:r})=>[R("span",{title:r.key},F(r.key),9,Zl)]),_:1}),_(s,{title:"Value"},{default:w(({row:r})=>[R("span",{title:r.value},F(r.value),9,ec)]),_:1})]),_:1},8,["data"])}}};var ac=q(tc,[["__scopeId","data-v-76813707"]]),nc=Object.freeze(Object.defineProperty({__proto__:null,default:ac},Symbol.toStringTag,{value:"Module"}));const ic=["onClick"],sc={key:0,align:"center",style:{flex:"1"}},oc={key:1,align:"center",style:{flex:"1"}},rc={__name:"magic-api-response-structure",setup(e){const t=oe("opened"),a=i=>{const s=t.value.responseBodyTree.findIndex(r=>r===i),o=i.level;i.expand=!i.expand;for(let r=s+1,l=t.value.responseBodyTree.length;ro)u.display=i.expand;else break}},n=_e(()=>{var i,s;return!t.value.responseBodyTree&&((s=(i=t.value)==null?void 0:i.item)==null?void 0:s.responseBodyDefinition)&&(t.value.responseBodyTree=aa(t.value.item.responseBodyDefinition)),(t.value.responseBodyTree||[]).filter(o=>o.display)});return(i,s)=>{const o=y("magic-icon"),r=y("magic-table-column"),l=y("magic-select"),u=y("magic-input"),d=y("magic-table"),g=y("magic-empty");return h(n).length?(v(),j(d,{key:0,data:h(n),border:""},{default:w(()=>[_(r,{title:h(c)("api.field")},{default:w(({row:f})=>[R("span",{style:je({paddingLeft:`${(f.level+(f.folder?0:1))*16}px`}),onClick:E=>a(f)},[f.folder?(v(),j(o,{key:0,icon:f.expand?"arrow-bottom":"arrow-right"},null,8,["icon"])):X("",!0)],12,ic),R("span",null,F(f.name||"-"),1)]),_:1},8,["title"]),_(r,{title:h(c)("message.type"),width:"80"},{default:w(({row:f})=>[_(l,{options:i.$BODY_DATA_TYPES,value:f.node.dataType,"onUpdate:value":E=>f.node.dataType=E,border:!1},null,8,["options","value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:"Value",flex:"3"},{default:w(({row:f})=>{var E;return[f.folder?(v(),k("p",sc,"-")):(v(),k("span",{key:1,class:ve(["magic-data-type",(E=f.node.dataType)==null?void 0:E.toLowerCase()])},F(f.node.value),3))]}),_:1}),_(r,{title:h(c)("message.description")},{default:w(({row:f})=>[f.name?(v(),j(u,{key:0,value:f.node.description,"onUpdate:value":E=>f.node.description=E,border:!1},null,8,["value","onUpdate:value"])):(v(),k("p",oc,"-"))]),_:1},8,["title"])]),_:1},8,["data"])):(v(),j(g,{key:1,text:h(c)("message.empty",h(c)("message.responseBody"))},null,8,["text"]))}}};var lc=q(rc,[["__scopeId","data-v-051e4f5a"]]),cc=Object.freeze(Object.defineProperty({__proto__:null,default:lc},Symbol.toStringTag,{value:"Module"}));const uc={class:"magic-panel-api-response"},dc={__name:"magic-api-response",props:{opened:Object},setup(e){const t=[{title:c("message.responseBody"),component:ee("magic-api-response-body")},{title:c("message.responseHeader"),component:ee("magic-api-response-header")},{title:c("message.responseStructure"),component:ee("magic-api-response-structure")}];return(a,n)=>{const i=y("magic-navbar-item"),s=y("magic-navbar");return v(),k("div",uc,[_(s,{direction:"horizontal",ref:"navbar",style:{flex:"1"},"allow-close":!1,"tooltip-direction":"bottom"},{default:w(()=>[(v(),k(te,null,fe(t,(o,r)=>_(i,{key:r,title:o.title},{default:w(()=>[(v(),j(Wn,null,[(v(),j(ee(o.component),{opened:e.opened},null,8,["opened"]))],1024))]),_:2},1032,["title"])),64))]),_:1},512)])}}};var pc=q(dc,[["__scopeId","data-v-1cf463a0"]]),_c=Object.freeze(Object.defineProperty({__proto__:null,default:pc},Symbol.toStringTag,{value:"Module"}));const hc={class:"magic-panel-global"},fc={__name:"magic-global-header",setup(e){const t=U(D.GLOBAL),a=U(-1);return(n,i)=>{const s=y("magic-panel-common-toolbar"),o=y("magic-input"),r=y("magic-table-column"),l=y("magic-table");return v(),k("div",hc,[_(s,{index:a.value,"onUpdate:index":i[0]||(i[0]=u=>a.value=u),value:t.value.headers},null,8,["index","value"]),_(l,{data:t.value.headers,border:"",onClickRow:i[1]||(i[1]=u=>a.value=u)},{default:w(()=>[_(r,{title:"Key"},{default:w(({row:u})=>[_(o,{value:u.name,"onUpdate:value":d=>u.name=d,border:!1},null,8,["value","onUpdate:value"])]),_:1}),_(r,{title:"Value"},{default:w(({row:u})=>[_(o,{value:u.value,"onUpdate:value":d=>u.value=d,border:!1},null,8,["value","onUpdate:value"])]),_:1})]),_:1},8,["data"])])}}};var gc=Object.freeze(Object.defineProperty({__proto__:null,default:fc},Symbol.toStringTag,{value:"Module"}));const mc={class:"magic-panel-global"},vc={__name:"magic-global-parameter",setup(e){const t=U(-1),a=U(D.GLOBAL);return(n,i)=>{const s=y("magic-panel-common-toolbar"),o=y("magic-input"),r=y("magic-table-column"),l=y("magic-file"),u=y("magic-table");return v(),k("div",mc,[_(s,{index:t.value,"onUpdate:index":i[0]||(i[0]=d=>t.value=d),value:a.value.parameters},null,8,["index","value"]),_(u,{data:a.value.parameters,border:"",onClickRow:i[1]||(i[1]=d=>t.value=d)},{default:w(()=>[_(r,{title:"Key"},{default:w(({row:d})=>[_(o,{value:d.name,"onUpdate:value":g=>d.name=g,border:!1},null,8,["value","onUpdate:value"])]),_:1}),_(r,{title:"Value"},{default:w(({row:d})=>[d.dataType==="MultipartFile"?(v(),j(l,{key:0,value:d.value,"onUpdate:value":g=>d.value=g,border:!1},null,8,["value","onUpdate:value"])):d.dataType==="MultipartFiles"?(v(),j(l,{key:1,value:d.value,"onUpdate:value":g=>d.value=g,border:!1,multiple:""},null,8,["value","onUpdate:value"])):(v(),j(o,{key:2,value:d.value,"onUpdate:value":g=>d.value=g,border:!1},null,8,["value","onUpdate:value"]))]),_:1})]),_:1},8,["data"])])}}};var bc=Object.freeze(Object.defineProperty({__proto__:null,default:vc},Symbol.toStringTag,{value:"Module"}));const Ec={class:"magic-global"},yc={__name:"magic-global",setup(e){const t=[{title:"\u5168\u5C40\u8BF7\u6C42\u53C2\u6570",component:ee("magic-global-parameter")},{title:"\u5168\u5C40\u8BF7\u6C42Header",component:ee("magic-global-header")}];return(a,n)=>{const i=y("magic-navbar-item"),s=y("magic-navbar");return v(),k("div",Ec,[_(s,{direction:"horizontal",ref:"navbar",style:{flex:"1"},"allow-close":!1},{default:w(()=>[(v(),k(te,null,fe(t,(o,r)=>_(i,Et({key:r},o),{default:w(()=>[(v(),j(ee(o.component)))]),_:2},1040)),64))]),_:1},512)])}}};var Tc=q(yc,[["__scopeId","data-v-03e7bbcc"]]),Sc=Object.freeze(Object.defineProperty({__proto__:null,default:Tc},Symbol.toStringTag,{value:"Module"}));const xc={__name:"magic-panel-common-toolbar",props:{value:Array,index:Number},emits:["update:index"],setup(e,{emit:t}){const a=e,n=[{title:c("message.addRow"),icon:"plus",onClick(){a.value.push({}),t("update:index",a.value.length-1)}},{title:c("message.removeRow"),icon:"minus",onClick(){a.value.length>0&&(a.value.splice(a.index==-1?a.value.length-1:a.index,1),t("update:index",-1))}}];return(i,s)=>{const o=y("magic-panel-toolbar");return v(),j(o,{toolbars:n})}}};var Oc=Object.freeze(Object.defineProperty({__proto__:null,default:xc},Symbol.toStringTag,{value:"Module"}));const Rc={class:"magic-panel-toolbar"},Ac=["data-title","data-tooltip-direction","onClick"],Cc={__name:"magic-panel-toolbar",props:{toolbars:Array,tooltipDirection:{type:String,default:"right"}},setup(e){const t=a=>{a.selectable?a.disabled!==!0&&(a.selected=a.selected!==!0,a.onSelect&&a.onSelect(a.selected)):a.disabled!==!0&&a.onClick()};return(a,n)=>{const i=y("magic-icon");return v(),k("ul",Rc,[(v(!0),k(te,null,fe(e.toolbars,(s,o)=>(v(),k("li",{key:o,"data-title":s.title,"data-tooltip-direction":e.tooltipDirection,onClick:ye(r=>t(s),["stop"]),class:ve({disabled:s.disabled,selected:s.selected})},[_(i,{icon:s.icon},null,8,["icon"])],10,Ac))),128))])}}};var Ic=q(Cc,[["__scopeId","data-v-4dcd3ed8"]]),kc=Object.freeze(Object.defineProperty({__proto__:null,default:Ic},Symbol.toStringTag,{value:"Module"}));const Lc={class:"magic-resource-choose"},Nc={key:0},wc={key:2},Dc={__name:"magic-resource-choose",props:{value:[Array,Object],type:String,single:{type:Boolean,default:()=>!1},file:{type:Boolean,default:()=>!0}},emits:["update:value"],setup(e,{expose:t,emit:a}){const n=e,i=oe("resources"),s=oe("service"),o=U([]),r=()=>{let m=[],L=C=>{C.id.endsWith("-root")?m.push({type:"root",id:C.type}):m.push({type:C.folder?"group":C.type,id:C.id}),C.children&&C.children.filter(x=>x.selected).forEach(x=>L(x))};o.value.filter(C=>C.selected).forEach(C=>L(C)),a("update:value",n.single?m[0]:m)},l=(m,L)=>{let C=[];return m&&m.filter(x=>x.id).forEach(x=>{var b;if(x.folder||n.file){if(x.folder)x.icon="list";else{const S=(b=s[L.type])==null?void 0:b.getIcon;x.icon=S&&S(x)||L.icon,x.textIcon=S!==void 0,x.type=L.type}C.push(x)}x.folder&&x.children&&(x.children=l(x.children,L))}),C},u=m=>{let L=m,C=[],x=b=>{b.forEach(S=>{S.id===L?(C.push(S),L=S.parentId||S.groupId,x(o.value)):S.children&&S.children.length>0&&x(S.children)})};return x(o.value),C},d=(m,L)=>{L!==void 0&&(m.selected=L);let C=x=>{x.selected=n.single?!1:m.selected,x.checkedHalf=n.single?!1:!m.selected,x.children&&x.children.forEach(b=>C(b))};m.children&&m.children.forEach(x=>C(x)),m.folder&&(m.checkedHalf=!1),u(m.folder?m.parentId:m.groupId).forEach(x=>{x.selected=n.single?!1:x.children.some(b=>b.selected),x.checkedHalf=n.single?!1:x.children.some(b=>!b.selected||b.checkedHalf)}),n.single?a("update:value",m.selected?m:void 0):r()},g=m=>d(m,!m.selected);return i().filter(m=>!n.type||n.type===m.navbar.type).forEach(m=>{const L=m.navbar.type,C=l(m.tree,m.navbar);C.forEach(x=>{x.folder?x.parentId=L+"-root":x.groupId=L+"-root"}),o.value.push({icon:m.navbar.icon,name:m.navbar.title,iconClass:"root",folder:!0,opened:!0,type:m.navbar.type,id:L+"-root",children:C})}),t({selectAll:m=>Ze(o.value,L=>{L.checkedHalf=!1,L.selected=m,L.children&&L.children.forEach(C=>C.selected=m),r()}),expand:m=>Ze(o.value,L=>{L.folder&&(L.opened=m)})}),(m,L)=>{const C=y("magic-checkbox"),x=y("magic-icon"),b=y("magic-text-icon"),S=y("magic-tree");return v(),k("div",Lc,[_(S,{data:o.value,sort:!1,onItemClick:g},{folder:w(({item:A})=>[_(C,{value:A.selected,"onUpdate:value":M=>A.selected=M,"checked-half":A.checkedHalf,onChange:M=>d(A)},null,8,["value","onUpdate:value","checked-half","onChange"]),_(x,{icon:A.opened?"arrow-bottom":"arrow-right",onClick:ye(M=>A.opened=!A.opened,["stop"])},null,8,["icon","onClick"]),_(x,{icon:A.icon,class:ve(A.iconClass)},null,8,["icon","class"]),R("label",null,F(A.name),1),A.path?(v(),k("span",Nc,"("+F(A.path)+")",1)):X("",!0)]),file:w(({item:A})=>[_(C,{value:A.selected,"onUpdate:value":M=>A.selected=M,"checked-half":A.checkedHalf,onChange:M=>d(A)},null,8,["value","onUpdate:value","checked-half","onChange"]),A.textIcon?(v(),j(b,{key:0,icon:A.icon},null,8,["icon"])):(v(),j(x,{key:1,icon:A.icon},null,8,["icon"])),R("label",null,F(A.name),1),A.path?(v(),k("span",wc,"("+F(A.path)+")",1)):X("",!0)]),_:1},8,["data"])])}}};var Mc=q(Dc,[["__scopeId","data-v-4852fc0e"]]),Pc=Object.freeze(Object.defineProperty({__proto__:null,default:Mc},Symbol.toStringTag,{value:"Module"}));const Uc={class:"magic-form-row"},$c={class:"magic-form-row"},Fc=R("label",null,"Key",-1),Bc={class:"magic-form-row"},Hc=R("label",null,"URL",-1),Vc={class:"magic-form-row"},jc={class:"magic-form-row"},Gc={class:"magic-form-row"},zc={class:"magic-form-row"},Yc={class:"magic-form-row"},qc=R("label",null,"maxRows",-1),Kc={class:"magic-form-row"},Wc={__name:"magic-datasource-datasource",props:{info:Object},setup(e){const{info:t}=e,a=U(JSON.stringify(t.properties||{}));return et(a,n=>{try{t.properties=JSON.parse(n)}catch{t.properties={}}}),(n,i)=>{const s=y("magic-input"),o=y("magic-select"),r=y("magic-monaco-editor");return v(),k(te,null,[R("div",Uc,[R("label",null,F(h(c)("message.name")),1),_(s,{value:e.info.name,"onUpdate:value":i[0]||(i[0]=l=>e.info.name=l),placeholder:h(c)("datasource.form.placeholder.name")},null,8,["value","placeholder"])]),R("div",$c,[Fc,_(s,{value:e.info.key,"onUpdate:value":i[1]||(i[1]=l=>e.info.key=l),placeholder:h(c)("datasource.form.placeholder.key")},null,8,["value","placeholder"])]),R("div",Bc,[Hc,_(s,{value:e.info.url,"onUpdate:value":i[2]||(i[2]=l=>e.info.url=l),placeholder:h(c)("datasource.form.placeholder.url")},null,8,["value","placeholder"])]),R("div",Vc,[R("label",null,F(h(c)("message.username")),1),_(s,{value:e.info.username,"onUpdate:value":i[3]||(i[3]=l=>e.info.username=l),placeholder:h(c)("datasource.form.placeholder.username")},null,8,["value","placeholder"])]),R("div",jc,[R("label",null,F(h(c)("message.password")),1),_(s,{value:e.info.password,"onUpdate:value":i[4]||(i[4]=l=>e.info.password=l),type:"password",placeholder:h(c)("datasource.form.placeholder.password")},null,8,["value","placeholder"])]),R("div",Gc,[R("label",null,F(h(c)("datasource.form.driver")),1),_(o,{inputable:"",value:e.info.driverClassName,"onUpdate:value":i[5]||(i[5]=l=>e.info.driverClassName=l),width:"100%",options:h(D).JDBC_DRIVERS.map(l=>({text:l,value:l})),placeholder:h(c)("datasource.form.placeholder.driver")},null,8,["value","options","placeholder"])]),R("div",zc,[R("label",null,F(h(c)("datasource.form.type")),1),_(o,{inputable:"",value:e.info.type,"onUpdate:value":i[6]||(i[6]=l=>e.info.type=l),width:"100%",options:h(D).DATASOURCE_TYPES.map(l=>({text:l,value:l})),placeholder:h(c)("datasource.form.placeholder.type")},null,8,["value","options","placeholder"])]),R("div",Yc,[qc,_(s,{value:e.info.maxRows,"onUpdate:value":i[7]||(i[7]=l=>e.info.maxRows=l),placeholder:h(c)("datasource.form.placeholder.maxRows"),"default-value":-1,type:"number"},null,8,["value","placeholder"])]),R("div",Kc,[R("label",null,F(h(c)("datasource.form.other")),1),_(r,{language:"json",value:a.value,"onUpdate:value":i[8]||(i[8]=l=>a.value=l),style:{height:"150px"}},null,8,["value"])])],64)}}};var Xc=Object.freeze(Object.defineProperty({__proto__:null,default:Wc},Symbol.toStringTag,{value:"Module"}));const Jc={class:"magic-backup-file"},Qc={class:"magic-backup-file-diff-container"},Zc={__name:"magic-backup-file",props:{id:String},setup(e){const t=e,a=oe("service"),n=U(""),i=U(!0),s=U(!0),o=We([]),r=U({}),l=U([]),u=U(""),d=()=>{u.value=a[r.value.type].language||"magicscript";const m=[];s.value=!0,n.value||m.push(new Promise(L=>Y.sendGet("/resource/file/"+t.id).success(C=>n.value=C).end(()=>L()))),m.push(new Promise(L=>Y.sendGet("/backup",{id:t.id,timestamp:r.value.createDate}).success(C=>r.value.script=C).end(()=>L()))),Promise.all(m).then(()=>{var L;s.value=!1,l.value=[r.value.script,(L=n.value)==null?void 0:L.script]}).catch(L=>{console.error(L),s.value=!1})},g=()=>{i.value=!0,Y.sendGet("/backup/"+t.id).success(m=>{m&&m.length>0&&(o.length=0,o.push(...m),r.value=o[0]||{},r.value&&d()),i.value=!1})};g(),et(()=>t.id,g);const f=()=>{const m=`${r.value.name}(${qe(r.value.createDate)})`;Y.sendPost("/backup/rollback",{id:t.id,timestamp:r.value.createDate}).success(L=>{L?(me.alert(c("backup.rollbackSuccess",m)),T.status("backup.rollbackSuccess",!0,m),T.$emit($.REFRESH_RESOURCE,t.id)):(me.alert(c("backup.rollbackFailed",m)),T.status("backup.rollbackFailed",!1,m))})},E=m=>{r.value=o[m],d()};return(m,L)=>{const C=y("magic-table-column"),x=y("magic-table"),b=y("magic-button"),S=y("magic-monaco-diff-editor"),A=y("magic-loading"),M=y("magic-empty");return v(),j(A,{loading:i.value},{default:w(()=>[R("div",Jc,[o.length>0?(v(),k(te,{key:0},[_(x,{data:o,border:!0,onClickRow:E},{default:w(()=>[_(C,{title:h(c)("message.date"),width:"160",class:"selected"},{default:w(({row:I})=>[pe(F(h(qe)(I.createDate)),1)]),_:1},8,["title"]),_(C,{title:h(c)("history.operator"),width:"100"},{default:w(({row:I})=>[pe(F(I.createBy||"guest"),1)]),_:1},8,["title"])]),_:1},8,["data"]),R("div",Qc,[R("ul",null,[R("li",null,[pe(F(h(qe)(r.value.createDate))+" by "+F(r.value.createBy||"guest")+" ",1),_(b,{value:h(c)("backup.rollback"),type:"active",onClick:f},null,8,["value"])]),R("li",null,[pe(F(h(c)("backup.current")),1),n.value?(v(),k(te,{key:0},[pe("("+F(h(qe)(n.value.updateTime||n.value.createTime))+" by "+F(n.value.updateBy||n.value.createBy||"guest")+")",1)],64)):X("",!0)])]),s.value?(v(),j(A,{key:1,loading:s.value},null,8,["loading"])):(v(),j(S,{key:0,value:l.value,"onUpdate:value":L[0]||(L[0]=I=>l.value=I),language:u.value},null,8,["value","language"]))])],64)):(v(),j(M,{key:1,text:h(c)("message.empty",h(c)("history.name"))},null,8,["text"]))])]),_:1},8,["loading"])}}};var eu=q(Zc,[["__scopeId","data-v-ef606938"]]),tu=Object.freeze(Object.defineProperty({__proto__:null,default:eu},Symbol.toStringTag,{value:"Module"}));const au={class:"magic-backup"},nu={class:"magic-backup-diff-container"},iu={class:"magic-backup-diff-header"},su={__name:"magic-backup",setup(e){const t=ee("magic-backup-file"),a=U(!0),n=[{icon:"refresh",title:c("message.refresh"),onClick(){m()}},{icon:"copy",title:c("backup.full"),onClick(){Y.sendPost("/backup/full").success(()=>{T.status("backup.backupSuccess"),m()})}}],i=U([]),s=U([]),o=U(!1),r=U(!0),l=U(""),u=U({}),d=U("magicscript");let g=!1,f=!1,E;const m=H=>{a.value=!0,Y.sendGet("/backups",{timestamp:H}).success(N=>{H?s.value.push(...N):s.value=N,(f=N.length>=100)&&(E=N[N.length-1].createDate),a.value=!1})},L=oe("service"),C=U({}),x=H=>{var N,V;return H.endsWith("-group")?c("message.group",((N=L[H.replace("-group","")])==null?void 0:N.name)||"Unknown"):H==="full"?c("backup.full"):((V=L[H])==null?void 0:V.name)||H};let b=!1;T.$on($.LOAD_RESOURCES_FINISH,H=>H||m());const S=()=>{f&&!g&&m(E)};pt(()=>{!b&&D.LOGINED&&m(),b=!0});const{proxy:A}=Tt(),M=(H,N)=>{const V=[],ie=L[N.type];N.id!=="full"&&!(N.type&&N.type.endsWith("-group"))&&!(ie&&ie.requireScript===!1)&&(V.push({icon:"difference",label:c("backup.difference"),onClick(){l.value=qe(N.createDate),o.value=!0,r.value=!0,d.value=L[N.type].language||"magicscript",Promise.all([new Promise(se=>Y.sendGet("/backup",{id:N.id,timestamp:N.createDate}).success(J=>se(J))),new Promise(se=>Y.sendGet("/resource/file/"+N.id).success(J=>se(J)))]).then(se=>{var J;C.value=se[1],u.value=N,r.value=!1,i.value=[se[0],(J=se[1])==null?void 0:J.script]}).catch(se=>{console.error(se),o.value=!1})}}),V.push({label:c("toolbars.history"),icon:"history",onClick:()=>{T.$emit($.ADD_FOOTER_TOOLBAR,{component:Ue(t),id:"backup-file",icon:"history",title:c("toolbars.viewHistory",N.name),allowClose:!0,data:{id:N.id}})}})),(N.id==="full"||!N.type.endsWith("-group"))&&V.push({icon:"rollback",label:c("backup.rollback"),onClick(){const se=`${N.name}(${qe(N.createDate)})`;me.confirm(c("backup.rollback"),c("backup.rollbackConfirm"),()=>{Y.sendPost("/backup/rollback",{id:N.id,timestamp:N.createDate}).success(J=>{J?(T.status("backup.rollbackSuccess",!0,se),T.$emit($.LOAD_RESOURCES)):(me.alert(c("backup.rollbackFailed",se)),T.status("backup.rollbackFailed",!1,se))})})}}),V.length>0&&A.$contextmenu({event:H,menus:V})},I=()=>{o.value=!1;const H=`${u.value.name}(${qe(u.value.createDate)})`;Y.sendPost("/backup/rollback",{id:u.value.id,timestamp:u.value.createDate}).success(N=>{N?(me.alert(c("backup.rollbackSuccess",H)),T.status("backup.rollbackSuccess",!0,H),T.$emit($.REFRESH_RESOURCE,u.value.id)):(me.alert(c("backup.rollbackFailed",H)),T.status("backup.rollbackFailed",!1,H))})};return(H,N)=>{const V=y("magic-panel-toolbar"),ie=y("magic-loading"),se=y("magic-table-column"),J=y("magic-table"),Ee=y("magic-empty"),xe=y("magic-monaco-diff-editor"),Xe=y("magic-button"),Ot=y("magic-button-group"),Ne=y("magic-dialog");return v(),k(te,null,[R("div",au,[_(V,{toolbars:n}),R("div",null,[_(ie,{loading:a.value},null,8,["loading"]),s.value.length>0?(v(),j(J,{key:0,data:s.value,border:!0,onContextmenu:M,onLoadNext:S},{default:w(()=>[_(se,{title:h(c)("message.date"),width:"160"},{default:w(({row:ke})=>[pe(F(h(qe)(ke.createDate)),1)]),_:1},8,["title"]),_(se,{title:h(c)("message.type"),width:"90"},{default:w(({row:ke})=>[R("span",null,F(x(ke.type)),1)]),_:1},8,["title"]),_(se,{title:h(c)("history.operator"),width:"100"},{default:w(({row:ke})=>[pe(F(ke.createBy||"guest"),1)]),_:1},8,["title"]),_(se,{title:h(c)("message.name"),align:"left"},{default:w(({row:ke})=>[pe(F(ke.name),1)]),_:1},8,["title"])]),_:1},8,["data"])):(v(),j(Ee,{key:1,text:h(c)("message.empty",h(c)("history.name"))},null,8,["text"]))])]),_(Ne,{value:o.value,"onUpdate:value":N[1]||(N[1]=ke=>o.value=ke),title:h(c)("history.name"),width:"80%",maxWidth:"100%",top:"60px",height:"80%",className:"magic-dialog-diff"},{default:w(()=>[R("div",nu,[R("div",iu,[R("div",null,F(l.value)+" by "+F(u.value.createBy||"guest"),1),R("div",null,F(h(c)("backup.current"))+"("+F(h(qe)(C.value.updateTime||C.value.createTime))+" by "+F(C.value.updateBy||C.value.createBy||"guest")+")",1)]),r.value?(v(),j(ie,{key:1,loading:r.value},null,8,["loading"])):(v(),j(xe,{key:0,value:i.value,"onUpdate:value":N[0]||(N[0]=ke=>i.value=ke),language:d.value},null,8,["value","language"]))]),_(Ot,{align:"right"},{default:w(()=>[_(Xe,{value:h(c)("backup.rollback"),type:"active",onClick:I},null,8,["value"])]),_:1})]),_:1},8,["value","title"])],64)}}};var ou=q(su,[["__scopeId","data-v-b15945c0"]]),ru=Object.freeze(Object.defineProperty({__proto__:null,default:ou},Symbol.toStringTag,{value:"Module"}));const lt=e=>(ka("data-v-71b796dc"),e=e(),La(),e),lu={class:"magic-debug"},cu={class:"magic-debug-variables"},uu={key:0,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},du=lt(()=>R("path",{d:"M201.472 320h-49.6V129.408l-59.2 18.368v-40.32L196.16 70.4h5.312V320z m50.816 320.128H81.024v-33.92l80.832-86.208c6.016-6.656 11.136-12.672 15.36-18.176a133.76 133.76 0 0 0 10.112-15.104 57.728 57.728 0 0 0 5.504-12.8 42.88 42.88 0 0 0 1.6-11.392c0-11.136-2.816-19.84-8.384-26.24-5.632-6.272-13.632-9.472-24.064-9.472a36.224 36.224 0 0 0-15.488 3.2 31.808 31.808 0 0 0-11.328 8.704 39.232 39.232 0 0 0-6.976 13.312 56.32 56.32 0 0 0-2.368 16.832h-49.792c0-11.2 1.984-21.76 6.016-31.744 3.968-9.984 9.792-18.624 17.28-26.112 7.616-7.424 16.704-13.312 27.392-17.664 10.688-4.352 22.784-6.528 36.16-6.528 13.12 0 24.768 1.664 34.88 4.928 10.176 3.2 18.624 7.872 25.536 13.952 6.848 6.08 12.032 13.504 15.616 22.336 3.52 8.768 5.312 18.688 5.312 29.696 0 8.32-1.28 16.384-3.968 24.192-2.56 7.744-6.336 15.552-11.136 23.296a190.08 190.08 0 0 1-17.408 23.68 528.64 528.64 0 0 1-22.784 24.768l-44.096 46.464h107.456v40zM131.456 812.8h26.432c12.608 0 21.888-3.136 27.968-9.408a34.56 34.56 0 0 0 9.088-25.088 38.656 38.656 0 0 0-2.048-12.8 26.304 26.304 0 0 0-16.832-16.704 42.112 42.112 0 0 0-14.912-2.432 41.792 41.792 0 0 0-12.928 1.984 33.664 33.664 0 0 0-10.688 5.568 25.6 25.6 0 0 0-9.856 20.608H78.08a60.8 60.8 0 0 1 6.4-28.032c4.352-8.448 10.176-15.552 17.536-21.44 7.424-5.888 16-10.496 25.984-13.76 9.984-3.2 20.608-4.864 32-4.864 12.544 0 24 1.472 34.368 4.48 10.368 3.072 19.2 7.616 26.688 13.632 7.424 5.952 13.184 13.44 17.28 22.272 4.16 8.896 6.208 19.2 6.208 30.848a52.8 52.8 0 0 1-9.856 30.72 67.968 67.968 0 0 1-28.032 22.976 62.08 62.08 0 0 1 31.488 22.656 61.44 61.44 0 0 1 10.368 35.712 66.56 66.56 0 0 1-25.408 54.336c-7.872 6.208-17.28 10.88-28.032 14.208a121.024 121.024 0 0 1-66.368 0.64 81.92 81.92 0 0 1-27.2-13.248 68.032 68.032 0 0 1-19.2-22.4 66.304 66.304 0 0 1-7.296-32h49.6a29.824 29.824 0 0 0 10.368 22.912 36.48 36.48 0 0 0 11.584 6.592 48.64 48.64 0 0 0 30.4 0 30.336 30.336 0 0 0 19.392-17.792 46.208 46.208 0 0 0-0.256-31.04 28.544 28.544 0 0 0-8.192-11.584 34.304 34.304 0 0 0-12.928-6.592 63.104 63.104 0 0 0-17.088-2.176h-26.432V812.8z",fill:"#9AA7B0"},null,-1)),pu=lt(()=>R("path",{d:"M384 128h512v192H384zM384 768h512v192H384zM384 448h512v192H384z",fill:"#40B6E0","fill-opacity":".7"},null,-1)),_u=[du,pu],hu={key:1,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},fu=lt(()=>R("path",{d:"M192 128h640v192H192zM192 384h640v192H192zM192 640h640v192H192z",fill:"#F4AF3D","fill-opacity":".6"},null,-1)),gu=[fu],mu={class:"key"},vu=lt(()=>R("label",{class:"separator"},"=",-1)),bu={key:2,class:"object-type"},Eu={key:3,class:"object-type"},yu={key:0,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Tu=lt(()=>R("path",{d:"M128 128h768v768H128z",fill:"#40B6E0","fill-opacity":".6","p-id":"8251"},null,-1)),Su=lt(()=>R("path",{d:"M691.968 704V422.912l-62.464 15.36L613.12 373.76l102.912-30.72h53.76V704h-77.824z m-284.288 6.144c-95.744 0-158.72-80.384-158.72-184.32V524.8c0-103.936 64.512-185.344 159.744-185.344 94.72 0 158.72 80.384 158.72 184.32V524.8c0 103.936-64 185.344-159.744 185.344z m1.408-71.168c47.616 0 77.824-48.128 77.824-113.152V524.8c0-65.024-31.744-114.176-78.848-114.176S330.24 458.24 330.24 523.776V524.8c0 65.536 31.232 114.176 78.848 114.176z",fill:"#231F20","fill-opacity":".7","p-id":"8252"},null,-1)),xu=[Tu,Su],Ou={key:1,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Ru=lt(()=>R("path",{d:"M192 128h640v192H192zM192 384h640v192H192zM192 640h640v192H192z",fill:"#F4AF3D","fill-opacity":".6"},null,-1)),Au=[Ru],Cu={class:"key"},Iu=lt(()=>R("label",{class:"separator"},"=",-1)),ku={key:2,class:"object-type"},Lu={__name:"magic-debug",setup(e){const t=oe("opened"),a=_e(()=>!t.value.variables),n=U([{title:c("editor.tooltip.resume")+"(F8)",icon:"continue",disabled:a,onClick(){T.$emit($.DEBUG_CONTINUE)}},{title:c("editor.tooltip.stepInto")+"(F6)",icon:"step-over",disabled:a,onClick(){T.$emit($.DEBUG_SETPINTO)}},{title:c("resource.header.expand"),icon:"expand-all",disabled:a,onClick:()=>Ze(t.value.variables,i=>i.opened=!0)},{title:c("resource.header.collapse"),icon:"collapse-all",disabled:a,onClick:()=>Ze(t.value.variables,i=>i.opened=!1)}]);return(i,s)=>{const o=y("magic-panel-toolbar"),r=y("magic-icon"),l=y("magic-tree"),u=y("magic-empty");return v(),k("div",lu,[_(o,{toolbars:n.value},null,8,["toolbars"]),R("div",cu,[h(t).variables?(v(),j(l,{key:0,data:h(t).variables},{folder:w(({item:d})=>[_(r,{icon:d.opened?"arrow-bottom":"arrow-right",onClick:ye(g=>d.opened=!d.opened,["stop"])},null,8,["icon","onClick"]),d.dataType==="array"?(v(),k("svg",uu,_u)):(v(),k("svg",hu,gu)),R("label",mu,F(d.name),1),vu,d.size?(v(),k("span",bu,"("+F(d.size)+")",1)):X("",!0),d.type?(v(),k("span",Eu,F(`{${d.type}}`),1)):X("",!0)]),file:w(({item:d})=>[_(r,{icon:"empty"}),d.dataType==="number"?(v(),k("svg",yu,xu)):(v(),k("svg",Ou,Au)),R("label",Cu,F(d.name),1),Iu,R("span",{class:ve(["magic-data-type",d.dataType])},F(d.value),3),d.type&&!d.isNull?(v(),k("span",ku," ("+F(d.type)+")",1)):X("",!0)]),_:1},8,["data"])):(v(),j(u,{key:1,text:h(c)("message.empty",h(c)("message.variable"))},null,8,["text"]))])])}}};var Nu=q(Lu,[["__scopeId","data-v-71b796dc"]]),wu=Object.freeze(Object.defineProperty({__proto__:null,default:Nu},Symbol.toStringTag,{value:"Module"}));const Du={class:"magic-event"},Mu=["innerHTML"],Pu={__name:"magic-event",setup(e){const t=T.getStatusLog(),a=[{title:c("message.clear"),icon:"clear",onClick:()=>{T.clearStatusLog()}}];return(n,i)=>{const s=y("magic-panel-toolbar"),o=y("magic-table-column"),r=y("magic-table");return v(),k("div",Du,[_(s,{toolbars:a}),R("div",null,[_(r,{data:h(t),border:"",align:"left"},{default:w(()=>[_(o,{title:h(c)("message.date"),width:"180"},{default:w(({row:l})=>[pe(F(l.timestamp),1)]),_:1},8,["title"]),_(o,{title:h(c)("event.message")},{default:w(({row:l})=>[R("div",{innerHTML:l.content},null,8,Mu)]),_:1},8,["title"])]),_:1},8,["data"])])])}}};var Uu=q(Pu,[["__scopeId","data-v-06d5ba36"]]),$u=Object.freeze(Object.defineProperty({__proto__:null,default:Uu},Symbol.toStringTag,{value:"Module"}));const Fu={class:"magic-log-wrapper"},Bu=["innerHTML"],Hu=["onClick"],Vu={__name:"magic-log",setup(e){const t=U([]),a=U(!1),n=U([{icon:"expand-all",title:c("resource.header.expand"),onClick:()=>t.value.forEach(d=>d.showMore=!0)},{icon:"collapse-all",title:c("resource.header.collapse"),onClick:()=>t.value.forEach(d=>d.showMore=!1)},{icon:"delete",title:c("message.clear"),onClick:()=>t.value.splice(0)},{icon:"scroll-down",title:c("log.scrollEnd"),selectable:!0,onSelect:d=>{a.value=d,o()}}]),i=U(null),{proxy:s}=Tt(),o=()=>{a.value&&be(()=>{i.value&&(i.value.scrollTop=i.value.scrollHeight)})},r=d=>{s.$contextmenu({event:d,menus:[{icon:"delete",label:c("message.clear"),onClick:()=>t.value.splice(0)},{icon:"expand-all",label:c("resource.header.expand"),onClick:()=>t.value.forEach(g=>g.showMore=!0)},{icon:"collapse-all",label:c("resource.header.collapse"),onClick:()=>t.value.forEach(g=>g.showMore=!1)}]})},l=d=>{const g=d.map(f=>{let E=f.replace(/[&<>]/gm,function(L){return L==="&"?"&":L==="<"?"<":L===">"?">":""});E=E.replace(/(\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{3}\s+)([^\s]+)( --- \[)(.{15})(] )(.{40})/gm,'$1 $2$3$4$5$6'),E=E.replace(/(https?:\/\/[^\s]+)/gm,'$1'),E=E.replace(/(\tat .*\()(.*?:\d+)(\).*?[\r\n])/g,'$1$2$3');let m=f.split(` -`).length;return{html:E,multiple:m>3,lines:m-3,showMore:!1}});g&&(t.value.push(...g),D.LOG_MAX_ROWS!==1/0&&t.value.length>D.LOG_MAX_ROWS&&t.value.splice(0,t.value.length-D.LOG_MAX_ROWS),o())};T.$event(Se.LOGS,([d])=>l(d)),T.$event(Se.LOG,([d])=>l(d));const u=new IntersectionObserver(()=>{o()});return pt(()=>{u.observe(i.value)}),(d,g)=>{const f=y("magic-panel-toolbar"),E=y("magic-empty");return v(),k("div",Fu,[_(f,{toolbars:n.value},null,8,["toolbars"]),!t.value||t.value.length===0?(v(),j(E,{key:0,text:h(c)("message.empty",h(c)("message.log"))},null,8,["text"])):X("",!0),bt(R("div",{class:"magic-log",ref_key:"element",ref:i,onContextmenu:g[0]||(g[0]=ye(m=>r(m),["prevent"]))},[(v(!0),k(te,null,fe(t.value,(m,L)=>(v(),k("div",{class:ve({multiple:m.multiple,more:m.showMore}),key:"run_log_"+L},[R("pre",{innerHTML:m.html},null,8,Bu),m.multiple?(v(),k("span",{key:0,class:"multiple",onClick:C=>m.showMore=!m.showMore},F(m.showMore?h(c)("log.hide"):h(c)("log.show",m.lines)),9,Hu)):X("",!0)],2))),128))],544),[[Ut,t.value&&t.value.length>0]])])}}};var ju=Object.freeze(Object.defineProperty({__proto__:null,default:Vu},Symbol.toStringTag,{value:"Module"}));const Gu={class:"magic-online"},zu={__name:"magic-online",setup(e){const t=We([]),a=oe("activateUserFiles"),n=(s,o)=>{const r=t.find(l=>l.cid===s);r&&(Object.values(a.value).forEach(l=>{const u=l.findIndex(d=>d.cid===s);u>-1&&l.splice(u,1)}),a.value[o]=a.value[o]||[],a.value[o].push(r))},i=s=>{t.some(o=>o.cid===s.cid)||t.push(s)};return T.$event(Se.LOGIN_RESPONSE,([s,o])=>{a.value={},t.splice(0,t.length),s==="1"&&i(o)}),T.$event(Se.PING,()=>{T.send(Se.PONG)}),T.$event(Se.USER_LOGIN,([s])=>{D.CLIENT_ID!==s.cid&&(T.$emit($.NOTIFY,{title:c("online.login"),content:c("online.loginTips",s.username,s.ip),duration:3e3}),T.status("online.loginTips",!0,s.username,s.ip)),i(s)}),T.$event(Se.USER_LOGOUT,([s])=>{D.CLIENT_ID!==s.cid&&(T.$emit($.NOTIFY,{title:c("online.logout"),content:c("online.logoutTips",s.username,s.ip),duration:3e3}),T.status("online.logoutTips",!0,s.username,s.ip));const o=t.findIndex(r=>r.cid===s.cid);n(s.cid,"0"),o>-1&&t.splice(o,1)}),T.$event(Se.ONLINE_USERS,([s])=>{s.forEach(o=>{D.CLIENT_ID!==o.cid&&(i(o),o.fileId&&n(o.cid,o.fileId))})}),T.$event(Se.INTO_FILE_ID,([s,o])=>n(s,o)),(s,o)=>{const r=y("magic-avatar-group");return v(),k("div",Gu,[_(r,{users:t,max:9},null,8,["users"]),R("span",null,F(h(c)("online.onlines",t.length)),1)])}}};var Yu=q(zu,[["__scopeId","data-v-0c296fa2"]]),qu=Object.freeze(Object.defineProperty({__proto__:null,default:Yu},Symbol.toStringTag,{value:"Module"}));const Ku={class:"magic-status-bar"},Wu=["innerHTML"],Xu=["data-title","onClick"],Ju={__name:"magic-status-bar",props:{config:Object},setup(e){const t=e,a=U(null),n=[{icon:"gitee",title:"Gitee",displayKey:"repo",onClick:()=>window.open("https://gitee.com/ssssssss-team/magic-api")},{icon:"git",title:"Github",displayKey:"repo",onClick:()=>window.open("https://github.com/ssssssss-team/magic-api")},{icon:"qq",title:c("message.joinGroup"),displayKey:"qqGroup",onClick:()=>window.open("https://www.ssssssss.org/magic-api/pages/group/")},{icon:"help",title:c("message.document"),displayKey:"document",onClick:()=>window.open("https://ssssssss.org/magic-api")}],i=_e(()=>{const o=n.filter(r=>t.config.header[r.displayKey]!==!1);return a.value&&a.value.id&&a.value.username&&o.push({icon:"logout",title:a.value.username,onClick:()=>me.confirm(c("message.logout"),c("message.logoutConfirm",a.value.username),()=>Y.sendPost("/logout").success(()=>{a.value=null,D.HEADER_MAGIC_TOKEN_VALUE="unauthorization",D.LOGINED=!1,De.remove(D.STORE.token),T.$emit($.LOGOUT),T.status("message.logoutSuccess")}))}),o}),s=U("");return T.$on($.LOGINED,()=>{T.status("message.getCurrentLoginUser"),Y.send("/user").success(o=>a.value=o)}),T.$on($.STATUS,o=>s.value=o),(o,r)=>{const l=y("magic-online"),u=y("magic-icon");return v(),k("div",Ku,[R("div",{class:"message",innerHTML:s.value},null,8,Wu),_(l),R("ul",null,[(v(!0),k(te,null,fe(h(i),(d,g)=>(v(),k("li",{"data-title":d.title,"data-tooltip-direction":"left-top",key:g,onClick:ye(d.onClick,["stop"])},[_(u,{icon:d.icon},null,8,["icon"])],8,Xu))),128))])])}}};var Qu=q(Ju,[["__scopeId","data-v-55e90cbc"]]),Zu=Object.freeze(Object.defineProperty({__proto__:null,default:Qu},Symbol.toStringTag,{value:"Module"}));const e1={class:"magic-todo"},t1={key:3},a1={class:"todo"},n1={__name:"magic-todo",setup(e){const t=U(!0),a=[{icon:"refresh",title:c("message.refresh"),onClick(){d()}},{icon:"expand-all",title:c("message.expand"),onClick:()=>Ze(n.value,f=>f.opened=!0)},{icon:"collapse-all",title:c("message.collapse"),onClick:()=>Ze(n.value,f=>f.opened=!1)}],n=U([]),i=oe("resources"),s={},o=f=>{(f.groupId||f.line)&&T.$emit($.OPEN_WITH_ID,f.id)},r=(f,E)=>{let m=f.find(L=>L.id===E);if(!m)for(let L=0;L{let E=[];return f.forEach(m=>{m.line>0?E.push(m):m.folder&&m.children&&(m.children=l(m.children),m.children.length&&E.push(m))}),E},u=oe("service"),d=()=>{n.value=[],t.value=!0,Y.sendGet("/todo").success(f=>{const E=i();E.forEach(L=>s[L.navbar.type]=L.navbar);let m=!1;f.forEach(L=>{for(let C=0;CL.display).map(L=>({folder:!0,icon:L.navbar.icon,name:L.navbar.title,children:L.tree,root:!0}))),Ze(n.value,L=>L.opened=!0)),t.value=!1})};let g=!1;return T.$on($.LOAD_RESOURCES_FINISH,d),pt(()=>{!g&&D.LOGINED&&d(),g=!0}),(f,E)=>{const m=y("magic-panel-toolbar"),L=y("magic-loading"),C=y("magic-icon"),x=y("magic-text-icon"),b=y("magic-tree"),S=y("magic-empty");return v(),k("div",e1,[_(m,{toolbars:a}),R("div",null,[_(L,{loading:t.value},null,8,["loading"]),n.value.length>0?(v(),j(b,{key:0,data:n.value,onItemClick:o},{folder:w(({item:A})=>[_(C,{icon:A.opened?"arrow-bottom":"arrow-right",onClick:ye(M=>A.opened=!A.opened,["stop"])},null,8,["icon","onClick"]),A.root?(v(),j(C,{key:0,icon:A.icon},null,8,["icon"])):A.icon?(v(),j(x,{key:1,icon:A.icon},null,8,["icon"])):(v(),j(C,{key:2,icon:"list"})),R("label",null,F(A.name),1),A.path?(v(),k("span",t1,"("+F(A.path)+")",1)):X("",!0)]),file:w(({item:A})=>[_(C),_(C,{icon:"todo"}),R("label",a1,F(A.text),1)]),_:1},8,["data"])):(v(),j(S,{key:1,text:h(c)("message.empty","TODO")},null,8,["text"]))])])}}};var i1=q(n1,[["__scopeId","data-v-29308d9b"]]),s1=Object.freeze(Object.defineProperty({__proto__:null,default:i1},Symbol.toStringTag,{value:"Module"}));const o1={class:"magic-toolbar"},r1={class:"magic-toolbar-header"},l1={class:"magic-toolbar-header-buttons"},c1={__name:"magic-toolbar",setup(e){const t=U(null),a=We([{type:"api",title:c("api.title"),icon:"parameter",component:Ue(ee("magic-api-info"))},{id:"response",type:"api",title:c("toolbars.response"),icon:"run",component:Ue(ee("magic-api-response"))},{type:"function",title:c("fn.title"),icon:"parameter",component:Ue(ee("magic-function-info"))},{type:"group-api",title:c("message.group",c("api.name")),icon:"parameter",component:Ue(ee("magic-api-group"))},{id:"debug",type:["api","task"],title:c("toolbars.debug"),icon:"debug-info",component:Ue(ee("magic-debug"))},{id:"log",title:c("toolbars.log"),icon:"log",component:Ue(ee("magic-log"))},{type:"api",title:c("toolbars.global"),icon:"settings",component:Ue(ee("magic-global"))},{id:"todo",title:"TODO",icon:"todo",component:Ue(ee("magic-todo"))},{id:"history",title:c("toolbars.history"),icon:"history",component:Ue(ee("magic-backup"))},{id:"event",title:c("toolbars.event"),icon:"event",component:Ue(ee("magic-event")),style:{float:"right"}}]);D.PLUGINS.filter(r=>r.toolbars&&r.toolbars.length>0).map(r=>r.toolbars).forEach(r=>r.forEach(l=>{a.unshift({id:l.id,type:l.type,icon:l.icon,title:c(l.title),component:Ue(l.component)})}));const n=U({}),i=U({});Ye("opened",n),Ye("info",i);const s=(r,l)=>{a.forEach(u=>u.show=u.type===void 0||(Array.isArray(u.type)?u.type.find(d=>d.type===r):u.type===r)),t.value&&l&&t.value.select(a.findIndex(u=>u.show))};s("");const o=r=>{const l=a.findIndex(u=>u.id===r.id);l>-1&&a.splice(l,1),t.value.select(-1)};return T.$on($.ADD_FOOTER_TOOLBAR,r=>{r.id&&o(r),t.value.select(a.push(r)-1)}),T.$on($.OPEN_EMPTY,()=>s("")),T.$on($.OPEN,(r,l)=>{r.responseBlobValue=null,n.value=r,i.value=r.item,s(r.type,l)}),T.$on($.OPEN_GROUP,r=>{s("group-"+r.type,!0),i.value=r}),T.$on($.SWITCH_TOOLBAR,r=>{const l=a.findIndex(u=>u.id===r);l>-1&&t.value.select(l)}),(r,l)=>{const u=y("magic-icon"),d=y("magic-resizer"),g=y("magic-navbar-item"),f=y("magic-navbar");return v(),k("div",o1,[_(f,{direction:"horizontal",ref_key:"navbar",ref:t,"tooltip-direction":"bottom"},{default:w(()=>[(v(!0),k(te,null,fe(a,(E,m)=>(v(),j(g,Et({key:m},E),{default:w(()=>[_(d,{direction:"y",max:700,min:150,value:250},{default:w(()=>[R("div",r1,[R("label",null,F(E.title),1),R("div",l1,[_(u,{icon:"minimize",size:"14px",title:h(c)("message.hide"),onClick:l[0]||(l[0]=L=>t.value.select(-1))},null,8,["title"]),E.allowClose?(v(),j(u,{key:0,icon:"close",title:h(c)("editor.tab.close"),onClick:L=>o(E)},null,8,["title","onClick"])):X("",!0)])]),(v(),j(ee(E.component),Xn(Jn(E.data)),null,16))]),_:2},1024)]),_:2},1040))),128))]),_:1},512)])}}};var u1=q(c1,[["__scopeId","data-v-68b3ca3b"]]),d1=Object.freeze(Object.defineProperty({__proto__:null,default:u1},Symbol.toStringTag,{value:"Module"}));const p1={class:"magic-function-info"},_1={__name:"magic-function-info",setup(e){const t=oe("info"),a=[{title:c("fn.parameter"),component:ee("magic-function-parameter")},{title:c("fn.description"),component:ee("magic-api-description")}];return(n,i)=>{const s=y("magic-select"),o=y("magic-input"),r=y("magic-navbar-item"),l=y("magic-navbar");return v(),k(te,null,[R("div",p1,[R("form",null,[R("label",null,F(h(c)("fn.returnValue")),1),_(s,{width:"100px",options:n.$FUNCTION_RETURN_TYPES,"default-select":n.$DEFAULT_FUNCTION_RETURN_TYPE,value:h(t).method,"onUpdate:value":i[0]||(i[0]=u=>h(t).method=u)},null,8,["options","default-select","value"]),R("label",null,F(h(c)("fn.form.name")),1),_(o,{value:h(t).name,"onUpdate:value":i[1]||(i[1]=u=>h(t).name=u),placeholder:h(c)("fn.form.placeholder.name"),width:"200px"},null,8,["value","placeholder"]),R("label",null,F(h(c)("fn.form.path")),1),_(o,{value:h(t).path,"onUpdate:value":i[2]||(i[2]=u=>h(t).path=u),placeholder:h(c)("fn.form.placeholder.path"),width:"auto",style:{flex:"1"}},null,8,["value","placeholder"])])]),_(l,{direction:"horizontal",ref:"navbar",style:{flex:"1"},"allow-close":!1},{default:w(()=>[(v(),k(te,null,fe(a,(u,d)=>_(r,{key:d,title:u.title},{default:w(()=>[(v(),j(ee(u.component),{info:h(t)},null,8,["info"]))]),_:2},1032,["title"])),64))]),_:1},512)],64)}}};var h1=q(_1,[["__scopeId","data-v-bc8654ec"]]),f1=Object.freeze(Object.defineProperty({__proto__:null,default:h1},Symbol.toStringTag,{value:"Module"}));const g1={class:"magic-panel-function"},m1={__name:"magic-function-parameter",setup(e){const t=oe("info"),a=U(-1);return(n,i)=>{const s=y("magic-panel-common-toolbar"),o=y("magic-input"),r=y("magic-table-column"),l=y("magic-select"),u=y("magic-table");return v(),k("div",g1,[_(s,{index:a.value,"onUpdate:index":i[0]||(i[0]=d=>a.value=d),value:h(t).parameters},null,8,["index","value"]),_(u,{data:h(t).parameters,border:"",onClickRow:i[1]||(i[1]=d=>a.value=d)},{default:w(()=>[_(r,{title:h(c)("message.name"),width:"20%"},{default:w(({row:d})=>[_(o,{value:d.name,"onUpdate:value":g=>d.name=g,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("message.parameterType"),width:"20%"},{default:w(({row:d})=>[_(l,{options:n.$FUNCTION_RETURN_TYPES,value:d.type,"onUpdate:value":g=>d.type=g,"default-select":n.$DEFAULT_FUNCTION_RETURN_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1},8,["title"]),_(r,{title:h(c)("message.description"),flex:"1"},{default:w(({row:d})=>[_(o,{value:d.description,"onUpdate:value":g=>d.description=g,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"])]),_:1},8,["data"])])}}};var v1=Object.freeze(Object.defineProperty({__proto__:null,default:m1},Symbol.toStringTag,{value:"Module"}));const b1={__name:"magic-export",setup(e){const t=U(!1),a=U([]);T.$on($.DO_DOWNLOAD,()=>t.value=!0);const n=()=>{a.value.length?Y.sendJson("/download",a.value,{method:"post",headers:{"Content-Type":"application/json"},transformRequest:[],responseType:"blob"}).success(i=>{Ua(i,"magic-api.zip"),T.status("message.exported"),t.value=!1}):me.alert(c("message.exportNoneSelect"))};return(i,s)=>{const o=y("magic-resource-choose"),r=y("magic-button"),l=y("magic-button-group"),u=y("magic-dialog");return v(),j(u,{title:h(c)("message.export"),value:t.value,"onUpdate:value":s[5]||(s[5]=d=>t.value=d),shade:!1,padding:"0",width:"480px",top:"60px",overflow:"hidden"},{default:w(()=>[_(o,{ref:"resource",value:a.value,"onUpdate:value":s[0]||(s[0]=d=>a.value=d)},null,8,["value"]),_(l,{align:"right",style:{margin:"5px 0","margin-right":"5px"}},{default:w(()=>[_(r,{value:h(c)("message.expand"),onOnClick:s[1]||(s[1]=d=>i.$refs.resource.expand(!0))},null,8,["value"]),_(r,{value:h(c)("message.collapse"),onOnClick:s[2]||(s[2]=d=>i.$refs.resource.expand(!1))},null,8,["value"]),_(r,{value:h(c)("message.selectAll"),onOnClick:s[3]||(s[3]=d=>i.$refs.resource.selectAll(!0))},null,8,["value"]),_(r,{value:h(c)("message.deselectAll"),onOnClick:s[4]||(s[4]=d=>i.$refs.resource.selectAll(!1))},null,8,["value"]),_(r,{type:"active",value:h(c)("message.export"),onOnClick:n},null,8,["value"])]),_:1})]),_:1},8,["title","value"])}}};var E1=q(b1,[["__scopeId","data-v-097eba83"]]),y1=Object.freeze(Object.defineProperty({__proto__:null,default:E1},Symbol.toStringTag,{value:"Module"}));const T1={class:"magic-header"},S1={class:"magic-logo"},x1=["title"],O1=["title"],R1={class:"magic-header-title"},A1=["data-title","onClick"],C1={class:"magic-skin-selector"},I1=["onClick"],k1={class:"magic-locale-selector"},L1=["onClick"],N1={__name:"magic-header",props:{title:{type:String,default:"magic-api"},themeStyle:Object,header:Object},setup(e){const t=e,a={"../../../scripts/i18n/en.js":()=>Qa(()=>Promise.resolve().then(function(){return gi}),void 0),"../../../scripts/i18n/zh-cn.js":()=>Qa(()=>Promise.resolve().then(function(){return mi}),void 0)},n=We([]);for(let E in a)a[E]().then(m=>{n.push({id:E.replace(/(.*?i18n\/)(.*)(\.js)/g,"$2"),name:m.default.name})});const i=D.MAGIC_API_VERSION_TEXT,s=U(!1),o=U(!1),r=U({}),l=U("");T.$on($.OPEN_EMPTY,()=>{l.value="",r.value={}}),T.$on($.OPEN,E=>{r.value=E,l.value=E.path(),et(E,()=>{r.value===E&&(l.value=E.path())})});const u=_e(()=>[{name:`${c("message.run")}(Ctrl + Q)`,icon:"run",disabled:()=>r.value.runnable!==!0||r.value.running===!0,onClick:()=>T.$emit($.DO_TEST)},{name:`${c("message.save")}(Ctrl + S)`,icon:"save",onClick:()=>T.$emit($.DO_SAVE,!0)},{name:`${c("message.search")}(Ctrl + Shift + F)`,icon:"search",onClick:()=>T.$emit($.DO_SEARCH)},{name:c("message.upload"),icon:"upload",onClick:()=>T.$emit($.DO_UPLOAD)},{name:c("message.export"),icon:"download",onClick:()=>T.$emit($.DO_DOWNLOAD)},{name:c("message.push"),icon:"push",onClick:()=>T.$emit($.DO_PUSH)},{name:c("message.skin"),displayKey:"skin",icon:"skin",onClick:()=>{s.value=!s.value,o.value=!1}},{name:c("message.i18n"),icon:"i18n",onClick:()=>{o.value=!o.value,s.value=!1}},{name:c("message.reload"),icon:"refresh",onClick:()=>T.$emit($.RELOAD_RESOURCES)}].filter(E=>t.header[E.displayKey]!==!1)),d=E=>{D.THEME=E,T.$emit($.SWITCH_THEME,E),T.status("message.switchSkin",!0,E),$e.setTheme(E),Object.keys(t.themeStyle).forEach(L=>t.themeStyle[L]=void 0);let m=Kt[E];De.set(D.STORE.theme,E),Object.keys(m).forEach(L=>t.themeStyle[`--${L}`]=m[L]),s.value=!1},g=De.get(D.STORE.theme);Kt[g]?d(g):d(D.THEME);const f=({id:E,name:m})=>{o.value=!1,De.set("locale",E),me.confirm(c("message.tips"),c("message.switchLocale",m),()=>{location.reload()})};return(E,m)=>{const L=y("magic-icon");return v(),k(te,null,[R("div",T1,[R("div",S1,[R("label",{title:e.title},F(e.title),9,x1),R("label",{title:h(i)},F(h(i)),9,O1)]),R("div",R1,F(l.value),1),R("ul",null,[(v(!0),k(te,null,fe(h(u),(C,x)=>(v(),k("li",{key:x,"data-title":C.name,"data-tooltip-direction":"left-bottom",onClick:ye(b=>C.disabled!==!0&&C.onClick(),["stop"]),class:ve({disabled:C.disabled&&C.disabled()===!0})},[_(L,{icon:C.icon},null,8,["icon"])],10,A1))),128))])]),bt(R("div",C1,[R("ul",null,[(v(!0),k(te,null,fe(Object.keys(h(Kt)),C=>(v(),k("li",{key:"theme_"+C,onClick:x=>d(C)},F(C),9,I1))),128))])],512),[[Ut,s.value]]),bt(R("div",k1,[R("ul",null,[(v(!0),k(te,null,fe(n,C=>(v(),k("li",{key:"locale_"+C.id,onClick:x=>f(C)},F(C.name),9,L1))),128))])],512),[[Ut,o.value]])],64)}}};var w1=q(N1,[["__scopeId","data-v-1e7d7426"]]),D1=Object.freeze(Object.defineProperty({__proto__:null,default:w1},Symbol.toStringTag,{value:"Module"}));const M1={class:"magic-push-form"},P1={__name:"magic-push",setup(e){const t=U(!1),a=U([]),n=U("http://host:port/_magic-api-sync"),i=U("123456789");T.$on($.DO_PUSH,()=>t.value=!0);const s=r=>{Y.sendJson("/push",a.value,{method:"post",headers:{"magic-push-target":n.value,"magic-push-secret-key":i.value,"magic-push-mode":r,"Content-Type":"application/json"},transformRequest:[]}).success(()=>{const l=c(r==="full"?"push.full":"push.increment");T.status("push.success",!0,l),t.value=!1,T.$emit($.LOAD_RESOURCES)})},o=r=>{a.value.length?r==="full"?me.confirm(c("message.push"),c("message.pushWarning"),()=>s(r)):s(r):me.alert(c("message.pushNoneSelect"))};return(r,l)=>{const u=y("magic-resource-choose"),d=y("magic-input"),g=y("magic-button"),f=y("magic-button-group"),E=y("magic-dialog");return v(),j(E,{title:h(c)("message.push"),value:t.value,"onUpdate:value":l[7]||(l[7]=m=>t.value=m),shade:!1,padding:"0",width:"450px",top:"60px",overflow:"hidden"},{default:w(()=>[_(u,{ref:"resource",value:a.value,"onUpdate:value":l[0]||(l[0]=m=>a.value=m)},null,8,["value"]),R("div",M1,[R("div",null,[R("label",null,F(h(c)("message.remote"))+"\uFF1A",1),_(d,{value:n.value,"onUpdate:value":l[1]||(l[1]=m=>n.value=m)},null,8,["value"])]),R("div",null,[R("label",null,F(h(c)("message.secret"))+"\uFF1A",1),_(d,{value:i.value,"onUpdate:value":l[2]||(l[2]=m=>i.value=m),type:"password"},null,8,["value"])])]),_(f,{align:"right",style:{margin:"5px 0","margin-right":"5px"}},{default:w(()=>[_(g,{value:h(c)("message.selectAll"),onOnClick:l[3]||(l[3]=m=>r.$refs.resource.selectAll(!0))},null,8,["value"]),_(g,{value:h(c)("message.deselectAll"),onOnClick:l[4]||(l[4]=m=>r.$refs.resource.selectAll(!1))},null,8,["value"]),_(g,{value:h(c)("push.increment"),onOnClick:l[5]||(l[5]=m=>o("increment")),type:"active"},null,8,["value"]),_(g,{value:h(c)("push.full"),onOnClick:l[6]||(l[6]=m=>o("full"))},null,8,["value"])]),_:1})]),_:1},8,["title","value"])}}};var U1=q(P1,[["__scopeId","data-v-440447fe"]]),$1=Object.freeze(Object.defineProperty({__proto__:null,default:U1},Symbol.toStringTag,{value:"Module"}));const F1={class:"magic-search-result"},B1=["onClick","onDblclick"],H1=["innerHTML"],V1={class:"name"},j1=["textContent"],G1={class:"display-text"},z1={__name:"magic-search",setup(e){const t=U(""),a=U(!1),n=oe("findResource"),i=oe("service"),s=U([]),o=U({}),r=_e(()=>o.value.name+(o.value.path?`(${o.value.path})`:"")),l=C=>{C.script||Y.sendGet(`/resource/file/${C.id}`).success(x=>{C.script=x.script})},u=(C,x)=>{o.value=C,l(C),x&&(T.$emit($.OPEN_WITH_ID,C.id),a.value=!1,s.value=[],t.value="")};T.$on($.DO_SEARCH,()=>{s.value=[],t.value="",a.value=!a.value});let d=null;const g=C=>{const x=[...C.childNodes],b=[];for(;x.length;){const S=x.shift();S.nodeType===S.TEXT_NODE?b.push(S):x.unshift(...S.childNodes)}return b},f=C=>{let x=0;return C.map(b=>{let S=x,A=x+b.wholeText.length;return x=A,{text:b.wholeText,startIdx:S,endIdx:A}})},E=(C,x)=>{const b=[..."[]()?.+*^${}:"].reduce((A,M)=>(A[M]=!0,A),{});x=x.split("").map(A=>b[A]?`\\${A}`:A).join("[\\s\\n]*");const S=new RegExp(x,"gmi");return[...C.matchAll(S)]},m=(C,x,b)=>{for(let S=b.length-1;S>=0;S--){const A=b[S],M=A.index,I=M+A[0].length;for(let H=0;H=I)break;let se=C[H];const J=Math.max(0,M-V),Ee=Math.min(ie,I)-V-J;J>0&&(se=se.splitText(J)),Ee{if(!x)return C;const b=document.createElement("div");b.innerHTML=C;const S=g(b),A=f(S),M=A.map(({text:H})=>H).join(""),I=E(M,x);return m(S,A,I),b.innerHTML};return et(t,C=>{const x=C.trim();clearTimeout(d),x&&(d=setTimeout(()=>{Y.send("/search",{keyword:x},{method:"POST"}).success(async b=>{const S=[];for(let A=0;A0&&(o.value=S[0],l(o.value)),s.value=S})},600))}),(C,x)=>{const b=y("magic-input"),S=y("magic-text-icon"),A=y("magic-monaco-editor"),M=y("magic-dialog");return v(),j(M,{title:h(c)("message.search"),value:a.value,"onUpdate:value":x[1]||(x[1]=I=>a.value=I),shade:!1,padding:"0",width:"700px",top:"60px"},{default:w(()=>[_(b,{value:t.value,"onUpdate:value":x[0]||(x[0]=I=>t.value=I),placeholder:h(c)("message.searchText")},null,8,["value","placeholder"]),s.value.length>0?(v(),k(te,{key:0},[R("div",F1,[(v(!0),k(te,null,fe(s.value,(I,H)=>(v(),k("div",{key:H,class:ve(["magic-search-result-item",{selected:o.value===I}]),onClick:N=>u(I),onDblclick:N=>u(I,!0)},[R("div",{class:"label",innerHTML:I.text},null,8,H1),R("div",V1,[_(S,{icon:I.icon},null,8,["icon"]),pe(F(I.name),1)]),R("div",{class:"line",textContent:F(I.line)},null,8,j1)],42,B1))),128))]),R("div",G1,[_(S,{icon:o.value.icon},null,8,["icon"]),pe(F(h(r)),1)]),_(A,{readonly:"",value:o.value.script,language:o.value.language,style:{width:"100%",height:"300px"},matches:t.value},null,8,["value","language","matches"])],64)):X("",!0)]),_:1},8,["title","value"])}}};var Y1=q(z1,[["__scopeId","data-v-4bbc2d10"]]),q1=Object.freeze(Object.defineProperty({__proto__:null,default:Y1},Symbol.toStringTag,{value:"Module"}));const K1={__name:"magic-upload",setup(e){const t=U(!1),a=U(null),n=i=>{if(a.value){const s=new FormData;s.append("file",a.value,a.value.name),s.append("mode",i);const o=()=>{Y.send("/upload",s,{method:"post",headers:{"Content-Type":"multipart/form-data"}}).success(r=>{const l=c(i==="full"?"upload.full":"upload.increment");r?(T.status("upload.success",!0,l),t.value=!1,T.$emit($.LOAD_RESOURCES)):T.status("upload.failed",!1,l)})};i==="full"?me.confirm(c("message.upload"),c("message.uploadWarning"),o):o()}};return T.$on($.DO_UPLOAD,()=>t.value=!0),(i,s)=>{const o=y("magic-file"),r=y("magic-button"),l=y("magic-button-group"),u=y("magic-dialog");return v(),j(u,{title:h(c)("message.upload"),value:t.value,"onUpdate:value":s[3]||(s[3]=d=>t.value=d)},{default:w(()=>[_(o,{value:a.value,"onUpdate:value":s[0]||(s[0]=d=>a.value=d),accept:"application/x-zip-compressed"},null,8,["value"]),_(l,{align:"right",style:{"margin-top":"5px"}},{default:w(()=>[_(r,{value:h(c)("upload.increment"),type:"active",onClick:s[1]||(s[1]=d=>n("increment"))},null,8,["value"]),_(r,{value:h(c)("upload.full"),onClick:s[2]||(s[2]=d=>n("full"))},null,8,["value"])]),_:1})]),_:1},8,["title","value"])}}};var W1=Object.freeze(Object.defineProperty({__proto__:null,default:K1},Symbol.toStringTag,{value:"Module"}));const X1={class:"magic-data-resource"},J1={class:"magic-data-resource-header"},Q1=["title","onClick"],Z1={key:1},ed=["onContextmenu"],td={__name:"magic-data-resource",props:{type:String,title:String,data:Array},setup(e){const t=e,a=ee(`magic-datasource-${t.type}`),n=U(!1),i=U(""),s=U({}),o=U(""),r=U(""),l=U(!0),u=_e(()=>t.data&&t.data.length>0&&t.data[0].children&&t.data[0].children.filter(S=>S.name.indexOf(o.value)>-1||S.key.indexOf(o.value)>-1)||[]),d=oe("service")[t.type],g=[{name:c("message.createDataSource",t.title),icon:"plus",onClick:()=>{i.value=c("message.createDataSource",t.title),r.value=c("message.create"),s.value={},n.value=!0,l.value=!1}}],f=()=>{d.doTest(s.value)},{proxy:E}=Tt(),m=(S,A,M)=>{S.groupId=`${t.type}:0`,Y.sendJson(`/resource/file/${t.type}/save`,S).success(I=>{if(I){S.id!==I&&T.loading(3),S.id=I,T.status(A+"Success",!0,M),t.data[0].children=t.data[0].children||[];const H=t.data[0].children.find(N=>N.id===S.id);H?Object.keys(S).forEach(N=>H[N]=S[N]):t.data[0].children.push(S),n.value=!1}else T.status(A+"Failed",!1,M),E.$alert(c(A+"Failed",M))})},L=()=>{const S={...s.value};m(S,"message.save",`${t.title}\u300C${C(S)}\u300D`)},C=S=>`${S.name}(${S.key})`,x=S=>{const A=t.data[0].children.findIndex(M=>M===S);A>-1&&t.data[0].children.splice(A,1)},b=(S,A)=>{const M=[];S.id&&([{label:c("message.update"),icon:"update",divided:!0,onClick:()=>{l.value=!0,i.value=c("message.updateTips",t.title),r.value=c("message.update"),n.value=!0,T.status("message.getDetail",`${t.title}\u300C${C(S)}\u300D`),Y.sendGet(`/resource/file/${S.id}`).success(I=>s.value=I).end(()=>{l.value=!1})}},{label:c("resource.contextmenu.delete"),icon:"delete",onClick:()=>{const I=`${t.title}\u300C${C(S)}\u300D`;E.$confirm(c("message.deleteTips",t.title),c("message.deleteConfirm",I),()=>{Y.send("/resource/delete",{id:S.id}).success(H=>{T.status(H?"message.deleteSuccess":"message.deleteFailed",H,I),H?x(S):E.$alert(H?"message.deleteSuccess":"message.deleteFailed",I)})})}},{label:c("message.copy"),icon:"copy",divided:!0,onClick:()=>{Y.send(`/resource/file/${S.id}`).success(I=>{I.id=void 0,I.name=I.name+`(${c("message.copy")})`,I.key=I.key+"_copy",m(I,"datasource.copy",`${t.title}\u300C${C(I)}\u300D`)})}}].forEach(I=>M.push(I)),S.lock===D.LOCKED?M.push({label:c("resource.contextmenu.unlock"),icon:"unlock",onClick:()=>Y.sendPost("/resource/unlock",{id:S.id}).success(I=>{T.status(I?"message.unlockSuccess":"message.unlockFailed",I,`${t.title}\u300C${C(S)}\u300D`),I&&(S.lock=D.UNLOCK)})}):M.push({label:c("resource.contextmenu.lock"),icon:"lock",onClick:()=>Y.sendPost("/resource/lock",{id:S.id}).success(I=>{T.status(I?"message.lockSuccess":"message.lockFailed",I,`${t.title}\u300C${C(S)}\u300D`),I&&(S.lock=D.LOCKED)})})),D.PLUGINS.forEach(I=>{if(I.contextmenu&&typeof I.contextmenu=="function"){const H=I.contextmenu({...S,menuType:"datasource"});H&&H.length&&H.forEach(N=>M.push(N))}}),M.length&&E.$contextmenu({menus:M,event:A})};return(S,A)=>{const M=y("magic-icon"),I=y("magic-input"),H=y("magic-empty"),N=y("magic-button"),V=y("magic-button-group"),ie=y("magic-loading"),se=y("magic-dialog");return v(),k(te,null,[R("div",X1,[R("div",J1,[R("ul",null,[(v(),k(te,null,fe(g,(J,Ee)=>(v(),k(te,{key:Ee},[!J.show||J.show()?(v(),k("li",{key:0,title:J.name||"",onClick:xe=>J.onClick&&J.onClick(),class:ve({separator:J.separator})},[J.separator?X("",!0):(v(),j(M,{key:0,icon:J.icon},null,8,["icon"]))],10,Q1)):X("",!0)],64))),64))]),_(I,{value:o.value,"onUpdate:value":A[0]||(A[0]=J=>o.value=J),placeholder:h(c)("message.searchText"),width:"100%"},null,8,["value","placeholder"]),_(M,{icon:"search",size:"14px"})]),h(u).length===0?(v(),j(H,{key:0,text:h(c)("message.empty",e.title)},null,8,["text"])):(v(),k("ul",Z1,[(v(!0),k(te,null,fe(h(u),(J,Ee)=>(v(),k("li",{key:Ee,onContextmenu:ye(xe=>b(J,xe),["prevent"])},[_(M,{icon:"datasource"}),R("label",null,F(J.name||h(c)("datasource.primary")),1),R("span",null,"("+F(J.key||"default")+")",1),J.lock==="1"?(v(),j(M,{key:0,icon:"lock"})):X("",!0)],40,ed))),128))]))]),_(se,{value:n.value,"onUpdate:value":A[4]||(A[4]=J=>n.value=J),title:i.value,width:"550px"},{default:w(()=>[_(ie,{loading:l.value,style:{"min-height":"200px"}},{default:w(()=>[(v(),j(ee(h(a)),{info:s.value},null,8,["info"])),_(V,{align:"right",style:{padding:"5px 0"}},{default:w(()=>[_(N,{value:r.value,type:"active",onOnClick:A[1]||(A[1]=J=>L())},null,8,["value"]),_(N,{value:h(c)("datasource.test"),onOnClick:A[2]||(A[2]=J=>f())},null,8,["value"]),_(N,{value:h(c)("message.cancel"),onOnClick:A[3]||(A[3]=J=>n.value=!1)},null,8,["value"])]),_:1})]),_:1},8,["loading"])]),_:1},8,["value","title"])],64)}}};var ad=q(td,[["__scopeId","data-v-4f1250a4"]]),nd=Object.freeze(Object.defineProperty({__proto__:null,default:ad},Symbol.toStringTag,{value:"Module"}));const $n=e=>(ka("data-v-2efca342"),e=e(),La(),e),id={class:"magic-login"},sd={class:"magic-login-box"},od=$n(()=>R("div",{class:"magic-login-logo"},null,-1)),rd={class:"magic-login-text"},ld={key:0},cd={key:0,class:"magic-login-row error"},ud={class:"magic-login-row"},dd={class:"magic-login-row"},pd={class:"magic-login-row"},_d={class:"magic-login-copyright"},hd=$n(()=>R("a",{href:"https://ssssssss.org.cn",target:"_blank"},"ssssssss.org.cn",-1)),fd={__name:"magic-login",props:{value:Boolean,error:String},emits:["update:value","update:error"],setup(e,{emit:t}){const a=U(""),n=U(""),i=()=>{a.value&&n.value&&(t("update:error",null),Y.sendPost("/login",{username:a.value,password:n.value}).success((s,o)=>{s&&(t("update:value",!1),D.HEADER_MAGIC_TOKEN_VALUE=o.headers[D.HEADER_MAGIC_TOKEN],De.set(D.STORE.token,D.HEADER_MAGIC_TOKEN_VALUE),T.$emit($.LOGINED),a.value="",n.value="")}).exception((s,o)=>{s!=401&&(o=translateCode(s,o)),t("update:error",o)}).error((s,o,r)=>{if(r){let l="";r.response?l=JSON.stringify(r.response.data||"")||c("code.invalid",r.response.status):l=r.message,t("update:error",l)}}))};return(s,o)=>{const r=y("magic-icon"),l=y("magic-input"),u=y("magic-button");return v(),k("div",id,[R("div",sd,[od,R("div",rd,[pe("Magic-API "),h(D).MAGIC_API_VERSION_TEXT?(v(),k("span",ld,"v"+F(h(D).MAGIC_API_VERSION_TEXT),1)):X("",!0)]),e.error?(v(),k("div",cd,[_(r,{icon:"error"}),R("span",null,F(e.error),1)])):X("",!0),R("div",ud,[_(r,{icon:"user"}),_(l,{onEnter:i,value:a.value,"onUpdate:value":o[0]||(o[0]=d=>a.value=d),placeholder:h(c)("message.username")},null,8,["value","placeholder"])]),R("div",dd,[_(r,{icon:"password"}),_(l,{onEnter:i,value:n.value,"onUpdate:value":o[1]||(o[1]=d=>n.value=d),type:"password",placeholder:h(c)("message.password")},null,8,["value","placeholder"])]),R("div",pd,[_(u,{value:h(c)("message.login"),onOnClick:i},null,8,["value"])])]),R("div",_d,[pe("Copyright \xA9 2020-"+F(new Date().getYear()+1900)+" ",1),hd,pe(" All rights reserved.")])])}}};var gd=q(fd,[["__scopeId","data-v-2efca342"]]),md=Object.freeze(Object.defineProperty({__proto__:null,default:gd},Symbol.toStringTag,{value:"Module"}));function vd(e,t){T.$emit($.SWITCH_TOOLBAR,"log"),t.headers[D.HEADER_REQUEST_CLIENT_ID]=D.CLIENT_ID,t.headers[D.HEADER_REQUEST_SCRIPT_ID]=e.item.id,t.headers[D.HEADER_MAGIC_TOKEN]=D.HEADER_MAGIC_TOKEN_VALUE,t.headers[D.HEADER_REQUEST_BREAKPOINTS]=(e.decorations||[]).filter(s=>s.options.linesDecorationsClassName==="breakpoints").map(s=>s.range.startLineNumber).join(","),t.responseType="blob",t.validateStatus=()=>!0;let a=0;t.transformResponse=[function(s,o){return a=s.size,o["content-disposition"]?new Promise(r=>r(s)):new Promise(r=>{const l=new FileReader;l.readAsText(s),l.onload=function(){try{JSON.parse(this.result),r(this.result)}catch{r(s)}}})}];const n=e.path();T.status("api.test.begin",!0,n);const i=new Date().getTime();Y.execute(t).then(s=>s.data.then(o=>{if(T.status("api.test.success",!0,n,s.status,Wi(a),new Date().getTime()-i),e.running=!1,e.responseBlob=o instanceof Blob)e.responseBlobValue=o,e.item.responseBody=null,e.item.responseBodyDefinition=null,e.responseBodyTree=null;else{e.item.responseBody=Qi(o);let r=Dn(e.item.responseBody,e.item.responseBodyDefinition);$a(e.item.responseBodyDefinition,r)&&T.$emit($.NOTIFY,{title:c("message.tips"),id:"responseBodyStructure",icon:"info",content:c("api.structure.content","ResponseBody"),buttons:[{title:c("api.structure.ok"),onClick:()=>{e.item.responseBodyDefinition=r,e.responseBodyTree=aa(r)}},{title:c("message.cancel"),onClick:()=>{}}]})}e.responseHeaders=s.headers,be(()=>T.$emit($.SWITCH_TOOLBAR,"response"))})).catch(s=>{T.status("api.test.requestError",!1,n),e.running=!1,Y.processError(s)})}function bd(e){e.running=!0;const t=e.item,a={baseURL:D.SERVER_URL,url:e.requestPath(),method:t.method,headers:{},responseType:"json",withCredentials:!0},n=s=>s.filter(o=>o.value&&o.value.trim()).forEach(o=>a.url=a.url.replace(new RegExp(`\\{${o.name}}`,"g"),o.value.trim()));if(e.getGroups().filter(s=>s.paths&&s.paths.length>0).map(s=>s.paths).forEach(s=>n(s)),n(t.paths||[]),a.url.indexOf("{")>-1){me.alert(c("api.test.missPath")),e.running=!1;return}D.GLOBAL.headers.filter(s=>s.name).forEach(s=>a.headers[s.name]=s.value),t.headers.filter(s=>s.name).forEach(s=>a.headers[s.name]=s.value);const i={};if(D.GLOBAL.parameters.filter(s=>s.name).forEach(s=>i[s.name]=s.value),t.parameters.filter(s=>s.name).forEach(s=>i[s.name]=s.value),Object.values(i).some(s=>s instanceof FileList||s instanceof File)){a.headers["Content-Type"]="multipart/form-data";const s=new FormData;Object.keys(i).forEach(o=>{let r=i[o];r instanceof FileList?Array.from(r).forEach(l=>s.append(o,l,l.name)):r instanceof File?s.append(o,r,r.name):s.append(o,r)}),a.data=s}else{a.headers["Content-Type"]="application/x-www-form-urlencoded",a.method!=="POST"||t.requestBody?a.params=i:a.data=i;try{if(t.requestBody){const s=JSON.parse(t.requestBody);(Array.isArray(s)&&s.length>0||typeof s=="object"&&Object.keys(s).length>0)&&(a.params=i,a.data=t.requestBody,a.headers["Content-Type"]="application/json",a.transformRequest=[])}}catch{e.running=!1,me.alert(c("api.test.requestBodyError"))}}vd(e,a)}var Ed={doTest:bd,getIcon:e=>e.method||"GET",runnable:!0,requirePath:!0,name:c("api.name"),merge:e=>(e.method=e.method||D.DEFAULT_REQUEST_METHOD,e.parameters=e.parameters||[],e.headers=e.headers||[],e.paths=e.paths||[],e.options=e.options||[],e),processSave:e=>{const t=D.config.persistenceResponseBody!==!1;return{id:e.id,name:e.name,path:e.path,groupId:e.groupId,lock:e.lock,method:e.method,description:e.description,createBy:e.createBy,createDate:e.createDate,properties:e.properties,script:e.script,responseBody:t&&e.responseBody||void 0,responseBodyDefinition:t&&e.responseBodyDefinition||void 0,requestBody:e.requestBody,requestBodyDefinition:e.requestBodyDefinition,parameters:e.parameters.filter(a=>a.name),headers:e.headers.filter(a=>a.name),paths:e.paths.filter(a=>a.name),options:e.options.filter(a=>a.name)}}},yd={getIcon:e=>"function",name:c("fn.name"),runnable:!1,requirePath:!0,merge:e=>(e.parameters=e.parameters||[],e)};let Aa;ae.setExtensionAttribute("org.ssssssss.magicapi.modules.db.SQLModule",()=>{var e;return Aa&&(((e=Aa("datasource")[0])==null?void 0:e.children)||[]).filter(t=>t.key).map(t=>({name:t.key,type:"org.ssssssss.magicapi.modules.db.SQLModule",comment:t.name}))||[]});var Td={injectResources:e=>Aa=e,requireScript:!1,doTest:e=>{Y.sendJson("/datasource/jdbc/test",e).success(t=>{t==="ok"?me.alert(c("datasource.connected"),c("datasource.test")):me.alert(c("datasource.connectFailed",t),c("datasource.test"))})}};const Sd={class:"magic-main"},xd={class:"magic-main-body-wrapper"},Od={class:"magic-main-body"},Rd={ref:"mrl",class:"magic-navbar magic-navbar__vertical"},Ad={ref:"mrr",class:"magic-navbar magic-navbar__vertical reverse"},Cd={__name:"magic-main",emits:["onLoad"],setup(e,{expose:t,emit:a}){const n=U(!1),i=U({}),s=U(!0),o=U(null),r=(b,S,A)=>{for(let M=0,I=b.length;M{const S=Object.entries(i.value);for(let A=0,M=S.length;A0)return{item:I[0],type:H[0],name:it("/"+I.reverse().map(N=>N.name).join("/")),path:it("/"+I.reverse().map(N=>N.path||"").join("/"))}}};Ye("findResource",l);const u=[{type:"api",title:c("api.name"),icon:"api"},{type:"function",title:c("fn.name"),icon:"function"}],d={api:Ed,function:yd,datasource:Td};D.PLUGINS.filter(b=>b.resource&&b.resource.length>0).map(b=>b.resource).forEach(b=>b.forEach(S=>{u.push({type:S.type,icon:S.icon,title:c(S.title)}),S.service&&(d[S.type]=S.service)})),Ye("service",d),u.map(b=>b.type).forEach(b=>i.value[b]=[]);const g=[{type:"datasource",title:c("datasource.title"),icon:"datasource",name:c("datasource.name")}];D.PLUGINS.filter(b=>b.datasources&&b.datasources.length>0).map(b=>b.datasources).forEach(b=>b.forEach(S=>{g.push({type:S.type,icon:S.icon,title:S.title,name:S.name})})),g.map(b=>b.type).forEach(b=>i.value[b]=[]),Ye("resources",()=>{const b=[...u,...g],S=A=>A.length===1&&A[0].id.endsWith(":0")?A[0].children:A;return b.map(A=>({key:A.type,navbar:A,tree:S(JSON.parse(JSON.stringify(i.value[A.type]||[])))}))}),Object.values(d).forEach(b=>b.injectResources&&b.injectResources(S=>i.value[S])),be(()=>n.value=!0);const f=b=>({...b.node,folder:b.node.parentId!==void 0,opened:b.node.parentId!==void 0&&D.DEFAULT_EXPAND===!0,children:b.children&&b.children.length?b.children.map(S=>f(S)):void 0}),E=(b,S)=>{var M;s.value=!0,i.value={};const A=b?((M=u.find(I=>I.type===b)||g.find(I=>I.type===b))==null?void 0:M.title)||"":c("message.all");T.status("message.getResource",!0,A),Y.send("/resource").success(I=>{[...u,...g].filter(H=>!b||H.type===b).forEach(H=>{var N,V;i.value[H.type]=((V=(N=I[H.type])==null?void 0:N.children)==null?void 0:V.map(ie=>f(ie)))||[]}),s.value=!1,T.status("message.getResourceFinish",!0,A),be(()=>S())})};T.$on($.RELOAD_RESOURCES,()=>{s.value=!0,Y.sendGet("/reload").success(()=>{T.status("message.reloadResourceSuccess"),E(null,()=>T.$emit($.RELOAD_RESOURCES_FINISH))}).end(()=>s.value=!1)});const m=b=>E(b,()=>T.$emit($.LOAD_RESOURCES_FINISH,b));T.$on($.LOAD_RESOURCES,m),T.$on($.RELOAD_RESOURCES_FINISH,m);const L=b=>{let S;return Object.values(i.value).some(A=>{const M=[];if(r(A,b,M)){S=M[0];const I=u.findIndex(H=>H.type===M[M.length-1].type);return o.value&&o.value.select(I),!0}return!1}),S};T.$on($.SELECT_NAVBAR_BY_ITEM,L),T.$on($.OPEN_WITH_ID,b=>{const S=L(b);S&&T.$emit($.OPEN_ITEM,S)}),T.$on($.LOGOUT,()=>i.value={}),t({loadResources:m}),pt(()=>a("onLoad"));let C=0;const x=()=>{if(++C%u.length===0)try{JSON.parse(De.get(D.RECENT_OPENED_TAB)||"[]").forEach(b=>{T.$emit($.OPEN_WITH_ID,b)})}catch(b){console.error(b)}};return T.$on($.REFRESH_RESOURCE,b=>{const S=l(b);S&&Y.sendGet(`/resource/file/${b}`).success(A=>{Object.keys(A).forEach(M=>S.item[M]=A[M])})}),(b,S)=>{const A=y("magic-resource"),M=y("magic-loading"),I=y("magic-resizer"),H=y("magic-navbar-item"),N=y("magic-navbar"),V=y("magic-script-editor"),ie=y("magic-toolbar"),se=y("magic-data-resource"),J=y("magic-search"),Ee=y("magic-export"),xe=y("magic-upload"),Xe=y("magic-push"),Ot=y("magic-recent-opened");return v(),k("div",Sd,[n.value?(v(),j(N,{key:0,direction:"vertical",to:b.$refs.mrl,ref_key:"mnl",ref:o,spliter:!0},{default:w(()=>[(v(),k(te,null,fe(u,(Ne,ke)=>_(H,Et({key:ke},Ne),{default:w(()=>[_(I,{max:750,min:270,direction:"x"},{default:w(()=>[_(M,{loading:s.value},{default:w(()=>[_(A,Et(Ne,{data:i.value[Ne.type],onClose:S[0]||(S[0]=Ha=>b.$refs.mnl.select(-1)),onOnLoad:x,"tooltip-direction":"left-bottom"}),null,16,["data"])]),_:2},1032,["loading"])]),_:2},1024)]),_:2},1040)),64))]),_:1},8,["to"])):X("",!0),R("div",xd,[R("div",Od,[R("div",Rd,null,512),_(V),R("div",Ad,null,512)]),_(ie)]),_(N,{reverse:!0,"default-select":-1,direction:"vertical",to:b.$refs.mrr,spliter:!0,"tooltip-direction":"left"},{default:w(()=>[(v(),k(te,null,fe(g,(Ne,ke)=>_(H,{key:ke,title:Ne.title,icon:Ne.icon},{default:w(()=>[n.value?(v(),j(I,{key:0,max:420,min:140,value:200,direction:"x",reverse:!0},{default:w(()=>[_(M,{loading:s.value},{default:w(()=>[_(se,{type:Ne.type,title:Ne.name,data:i.value[Ne.type]},null,8,["type","title","data"])]),_:2},1032,["loading"])]),_:2},1024)):X("",!0)]),_:2},1032,["title","icon"])),64))]),_:1},8,["to"]),_(J),_(Ee),_(xe),_(Xe),_(Ot)])}}};var Id=q(Cd,[["__scopeId","data-v-478ba993"]]),kd=Object.freeze(Object.defineProperty({__proto__:null,default:Id},Symbol.toStringTag,{value:"Module"}));const Ld={class:"magic-recent-opened"},Nd=["onClick"],wd={key:1},Dd={key:0,style:{width:"100%",height:"100px"}},Md={__name:"magic-recent-opened",setup(e){const t=We([]),a=U(!1),n=oe("findResource"),i=oe("service");try{JSON.parse(De.get(D.RECENT_OPENED)||"[]").forEach(r=>t.push(r))}catch{}const s=_e(()=>t.map(r=>n(r)).filter(r=>r&&i[r.type])),o=r=>{T.$emit($.OPEN_WITH_ID,r),a.value=!1};return T.$on($.DO_RECENT,()=>a.value=!a.value),T.$on($.CLOSE,r=>{if(r.id){const l=t.findIndex(u=>u===r.id);l>-1&&t.splice(l,1),t.unshift(r.id),t.length>20&&t.splice(t.length-1,1),De.set(D.RECENT_OPENED,Be(t))}}),(r,l)=>{const u=y("magic-text-icon"),d=y("magic-empty"),g=y("magic-dialog");return v(),j(g,{value:a.value,"onUpdate:value":l[0]||(l[0]=f=>a.value=f),title:h(c)("editor.tooltip.recent"),padding:"0",shade:!1},{default:w(()=>[R("ul",Ld,[(v(!0),k(te,null,fe(h(s),(f,E)=>(v(),k("li",{key:E,onClick:ye(m=>o(f.item.id),["stop"])},[h(i)[f.type]&&h(i)[f.type].getIcon?(v(),j(u,{key:0,icon:h(i)[f.type].getIcon(f.item)},null,8,["icon"])):X("",!0),R("label",null,F(f.name),1),h(i)[f.type].requirePath&&f.path?(v(),k("span",wd,"("+F(f.path)+")",1)):X("",!0)],8,Nd))),128))]),h(s).length===0?(v(),k("div",Dd,[_(d,{text:"empty."})])):X("",!0)]),_:1},8,["value","title"])}}};var Pd=q(Md,[["__scopeId","data-v-44903aa6"]]),Ud=Object.freeze(Object.defineProperty({__proto__:null,default:Pd},Symbol.toStringTag,{value:"Module"}));const $d={class:"magic-resource-header"},Fd=["data-title","data-tooltip-direction","onClick"],Bd={key:0},Hd={key:0},Vd={class:"magic-create-group"},jd={key:0},Gd={__name:"magic-resource",props:{type:String,title:String,data:Array,tooltipDirection:String},emits:["close","onLoad"],setup(e,{emit:t}){const a=e,n=ee("magic-backup-file"),i=oe("service")[a.type],s=i.requirePath,o=i.getIcon,r=U(""),l=U(!0),u=U(!1),d=U(""),g=U(null),f=oe("activateUserFiles"),E=_e(()=>l.value?c("resource.createGroup"):c("resource.updateGroup")),m=U(!0),L=U({}),C=U({}),x=U(!1),b=U({type:a.type}),S=_e(()=>a.data),A=U([{name:c("resource.createGroup"),icon:"group-add",onClick:()=>{b.value={type:a.type,parentId:"0"},l.value=!0,x.value=!0}},{name:c("resource.header.expand"),icon:"expand-all",onClick:()=>Ze(S.value,P=>P.opened=!0)},{name:c("resource.header.collapse"),icon:"collapse-all",onClick:()=>Ze(S.value,P=>P.opened=!1)},{name:c("resource.header.desc"),icon:"descending",show:()=>m.value,onClick:()=>m.value=!1},{name:c("resource.header.asc"),icon:"ascending",show:()=>!m.value,onClick:()=>m.value=!0},{separator:!0},{name:c("resource.header.position"),icon:"position",onClick:()=>{C.value&&L.value&&(T.$emit($.SELECT_NAVBAR_BY_ITEM,L.value),C.value.scrollIntoView(L.value))}},{name:c("message.hide"),icon:"minimize",onClick:()=>t("close")}]),M=(P,G,z,B,ue)=>{ue=ue||[],G=G||[];let Te=G.find(at=>at===P||at.id===P);if(Te)return z.push(Te.name),ue.push(Te),i.requirePath&&Te.path&&B.push(Te.path),Te;for(let at=0,ia=G.length;at{const z=[],B=[];M(Be(P),Be(S.value),z,B);const ue=B.length>0?it(`/${B.join("/")}`):"";return G?ue:`/${z.join("/")}${i.requirePath?`(${ue})`:""}`},H=P=>I(P),N=[],V=(P,G)=>{if(P)if(P.folder)T.$emit($.OPEN_GROUP,P);else{let z=N.find(B=>B.item==P);z||(z=We({type:a.type,title:a.title,language:i.language||"magicscript",pageType:i.pageType,component:i.component,item:i.merge(P),path:()=>I(P),requestPath:()=>{const B=[];return M(Be(P),Be(S.value),[],B),it(`/${B.join("/")}`)},getGroups:()=>{const B=[];return M(Be(P),Be(S.value),[],[],B),B},getIcon:i.getIcon,runnable:i.runnable,doTest:i.doTest,processSave:i.processSave||(B=>B)}),N.push(z)),T.$emit($.OPEN,z,G)}};T.$on($.OPEN,P=>L.value=P.item),T.$on($.OPEN_EMPTY,()=>L.value=null);const{proxy:ie}=Tt(),se=()=>{const P={...b.value};delete P.children,delete P.opened,delete P.folder,Y.sendJson("/resource/folder/save",P).success(G=>{if(G){const z={...Be(b.value),folder:!0,id:G};z.options=z.options||[],z.paths=z.paths||[],xe(z),T.status("resource.saveGroupSuccess",!0,a.title,I(G)),x.value=!1,T.loading(2)}else{const z=I(b.value);T.status("resource.saveGroupFailed",!1,a.title,z),ie.$alert(c("resource.saveGroupFailed",a.title,z))}})},J=(P,G)=>new Promise(z=>Y.send("/resource/move",{src:P.id,groupId:G.groupId||G.id}).success(B=>{const ue=P.folder?"resource.moveGroup":"resource.moveResource",Te=I(P);B?(P.folder?T.status(ue+"Success",!0,a.title,Te):T.status(ue+"Success",!0,Te),P[P.folder?"parentId":"groupId"]=G.groupId||G.id):P.folder?(T.status(ue+"Failed",!1,a.title,Te),ie.$alert(c(ue+"Failed",a.title,Te))):(T.status(ue+"Failed",!1,Te),ie.$alert(c(ue+"Failed",Te))),z(B)})),Ee=(P,G)=>{G=G||S.value;const z=G.findIndex(B=>B===P||B.id===P.id);z>-1?G.splice(z,1):G.forEach(B=>Ee(P,B.children||[]))},xe=(P,G)=>{G=G||S.value||[];const z=G.find(B=>B.id===P.id||P.groupId===B.id);if(z)return z.children=z.children||[],z.opened=!0,z.id===P.id?(z.name=P.name,z.path=P.path,z.parentId=P.parentId):z.children.push(P),!0;if(P.parentId==="0")return G.push(P),!0;{if(G.some(ue=>xe(P,ue.children||[])))return!0;const B=P.parentId!==void 0&&G.find(ue=>ue.id===P.parentId);if(B)return B.children=B.children||[],B.children.push(P),!0}return!1};T.$on($.OPEN_ITEM,P=>{const G=Be(S.value);G&&V(M(Be(P),G,[],[]),!0)});const Xe=(P,G)=>{if(P&&G){const z=[];P.folder?(z.push.apply(z,[{label:c("resource.contextmenu.newFile",a.title),icon:"plus",onClick(){const B={groupId:P.id,name:c("message.untitled"),script:i.defaultScript||"return 'Hello magic-api'",path:i.requirePath?"":void 0};xe(B),V(B,!0)}},{label:c("resource.createGroup"),icon:"group-add",onClick(){l.value=!0,b.value={parentId:P.id,type:a.type},x.value=!0}},{label:c("resource.updateGroup"),icon:"update",onClick(){l.value=!1,b.value={...P},x.value=!0}},{label:c("resource.copyGroup"),icon:"copy",onClick(){d.value=P.id,u.value=!0}},{label:c("resource.contextmenu.deleteGroup"),icon:"delete",onClick(){ie.$confirm(c("resource.contextmenu.deleteGroup"),c("resource.deleteGroupConfirm",a.title,I(P)),()=>{P.id?Y.send("/resource/delete",{id:P.id}).success(B=>{B?(T.status("resource.deleteGroupSuccess",!0,a.title,I(P)),Ee(P)):(ie.$alert("resource.deleteGroupFailed",a.title,I(P)),T.status("resource.deleteGroupFailed",!1,a.title,I(P)))}):Ee(P)})}},{label:c("resource.contextmenu.exportGroup"),icon:"download",onClick(){Y.send(`/download?groupId=${P.id}`,null,{headers:{"Content-Type":"application/json"},responseType:"blob"}).success(B=>{Ua(B,`${P.name}.zip`),T.status("resource.groupExport",!0,P.name,a.title)})}}]),P.parentId!=="0"&&z.push({label:c("resource.contextmenu.moveToRoot"),icon:"move",onClick(){ie.$confirm(c("resource.moveGroup"),c("resource.moveRootGroupConfirm",I(P)),()=>{Y.send("/resource/move",{src:P.id,groupId:"0"}).success(B=>{B?(T.status("resource.moveRootSuccess",!0,a.title,I(P)),P.parentId="0",Ee(P),xe(P)):(ie.$alert(c("resource.moveRootFailed",a.title,I(P))),T.status("resource.moveRootFailed",!1,a.title,I(P)))})})}})):(z.push.apply(z,[{label:c("resource.contextmenu.copy",a.title),icon:"copy",divided:!0,onClick:()=>{Y.send(`/resource/file/${P.id}`).success(B=>{B.id=`copy${new Date().getTime()}d${parseInt(Math.random()*1e5)}`,xe(B),V(B,!0),B.name=B.name+`(${c("message.copy")})`,i.requirePath&&(B.path=B.path+"_copy")})}}]),i.requirePath&&(a.type==="api"&&z.push({label:c("resource.contextmenu.copyWithPath"),icon:"copy",onClick:()=>{let B=I(P,!0);B&&(B=it(D.SERVER_URL+"/"+B),Wa(B)?T.status("resource.copyPathSuccess",!0,a.title,B):T.status("resource.copyPathFailed",!1,a.title,B))}}),z.push.apply(z,[{label:c("resource.contextmenu.copyRelativePath"),icon:"copy",divided:!0,onClick:()=>{const B=I(P,!0);B&&(Wa(B)?T.status("resource.copyRelativePathSuccess",!0,a.title,B):T.status("resource.copyRelativePathFailed",!1,a.title,B))}}]),P.lock===D.LOCKED?z.push({label:c("resource.contextmenu.unlock"),icon:"unlock",onClick:()=>Y.sendPost("/resource/unlock",{id:P.id}).success(B=>{T.status(B?"message.unlockSuccess":"message.unlockFailed",B,I(P)),B&&(P.lock=D.UNLOCK)})}):z.push({label:c("resource.contextmenu.lock"),icon:"lock",onClick:()=>Y.sendPost("/resource/lock",{id:P.id}).success(B=>{T.status(B?"message.lockSuccess":"message.lockFailed",B,I(P)),B&&(P.lock=D.LOCKED)})})),P.id&&z.push({label:c("toolbars.history"),icon:"history",onClick:()=>{T.$emit($.ADD_FOOTER_TOOLBAR,{component:Ue(n),id:"backup-file",icon:"history",title:c("toolbars.viewHistory",I(P)),allowClose:!0,data:{id:P.id}})}}),z.push.apply(z,[{label:c("message.refresh"),icon:"refresh",onClick:()=>{T.$emit($.REFRESH_RESOURCE,P.id)}},{label:c("resource.contextmenu.delete"),icon:"delete",onClick:()=>{const B=`${a.title}\u300C${I(P)}\u300D`;ie.$confirm(c("message.deleteTips",a.title),c("message.deleteConfirm",B),()=>{P.id?Y.send("/resource/delete",{id:P.id}).success(ue=>{ue?(T.status("message.deleteSuccess",!0,B),Ee(P),T.$emit($.DELETE_FILE,P)):(T.status("message.deleteFailed",!1,B),ie.$alert(c("message.deleteFailed",B)))}):(T.status("message.deleteSuccess",!0,B),Ee(P),T.$emit($.DELETE_FILE,P))})}}])),D.PLUGINS.forEach(B=>{if(B.contextmenu&&typeof B.contextmenu=="function"){const ue=B.contextmenu({...P,menuType:"resource"});ue&&ue.length&&ue.forEach(Te=>z.push(Te))}}),ie.$contextmenu({menus:z,event:G})}},Ot=P=>{ie.$contextmenu({event:P,menus:A.value.slice(0,5).filter(G=>!G.show||G.show()).map(G=>({icon:G.icon,label:G.name,onClick:G.onClick}))})};let Ne=null;const ke=()=>{g.value&&Y.sendPost("/resource/folder/copy",{src:d.value,target:g.value.id.endsWith("-root")?"0":g.value.id}).success(P=>{Ne=P,u.value=!1,T.$emit($.LOAD_RESOURCES)})},Ha=oe("findResource");return T.$on($.LOAD_RESOURCES_FINISH,()=>{Ne&&be(()=>{const P=Ha(Ne);T.$emit($.SELECT_NAVBAR_BY_ITEM,P.item),T.$emit($.OPEN_GROUP,P.item)})}),pt(()=>t("onLoad")),(P,G)=>{const z=y("magic-icon"),B=y("magic-input"),ue=y("magic-empty"),Te=y("magic-text-icon"),at=y("magic-avatar-group"),ia=y("magic-tree"),Pe=y("magic-button"),Va=y("magic-button-group"),ja=y("magic-dialog"),Hn=y("magic-resource-choose");return v(),k("div",{class:"magic-resource",onContextmenu:G[10]||(G[10]=ye(Z=>Ot(Z),["prevent"]))},[R("div",$d,[_(z,{icon:"search",size:"14px"}),_(B,{value:r.value,"onUpdate:value":G[0]||(G[0]=Z=>r.value=Z),placeholder:h(c)("message.searchText"),width:"100%"},null,8,["value","placeholder"]),R("ul",null,[(v(!0),k(te,null,fe(A.value,(Z,Ga)=>(v(),k(te,{key:Ga},[!Z.show||Z.show()?(v(),k("li",{key:0,"data-title":Z.name||"","data-tooltip-direction":e.tooltipDirection,onClick:hp=>Z.onClick&&Z.onClick(),class:ve({separator:Z.separator})},[Z.separator?X("",!0):(v(),j(z,{key:0,icon:Z.icon},null,8,["icon"]))],10,Fd)):X("",!0)],64))),128))])]),!e.data||e.data.length===0?(v(),j(ue,{key:0,text:h(c)("message.empty",e.title)},null,8,["text"])):(v(),j(ia,{key:1,ref_key:"treeObj",ref:C,data:h(S),onItemClick:V,onContextmenu:Xe,draggable:!0,sort:!0,descending:m.value,onMove:J,filter:r.value,"filter-text":H,selected:L.value},{folder:w(({item:Z})=>[_(z,{icon:Z.opened?"arrow-bottom":"arrow-right",onClick:ye(Ga=>Z.opened=!Z.opened,["stop"])},null,8,["icon","onClick"]),_(z,{icon:"list"}),R("label",null,F(Z.name),1),h(s)&&Z.path?(v(),k("span",Bd,"("+F(Z.path)+")",1)):X("",!0)]),file:w(({item:Z})=>[_(Te,{icon:h(o)(Z)},null,8,["icon"]),R("label",null,F(Z.name),1),h(s)&&Z.path?(v(),k("span",Hd,"("+F(Z.path)+")",1)):X("",!0),Z.lock==="1"?(v(),j(z,{key:1,icon:"lock"})):X("",!0),_(at,{users:h(f)[Z.id]||[],max:3,size:20},null,8,["users"])]),_:1},8,["data","descending","filter","selected"])),_(ja,{title:h(E),value:x.value,"onUpdate:value":G[5]||(G[5]=Z=>x.value=Z),width:"350px"},{default:w(()=>[R("ul",Vd,[R("li",null,[R("label",null,F(h(c)("resource.form.groupName"))+"\uFF1A",1),_(B,{value:b.value.name,"onUpdate:value":G[1]||(G[1]=Z=>b.value.name=Z),placeholder:h(c)("resource.form.placeholder.name",e.title)},null,8,["value","placeholder"])]),h(s)?(v(),k("li",jd,[R("label",null,F(h(c)("resource.form.groupPath"))+"\uFF1A",1),_(B,{value:b.value.path,"onUpdate:value":G[2]||(G[2]=Z=>b.value.path=Z),placeholder:h(c)("resource.form.placeholder.path",e.title)},null,8,["value","placeholder"])])):X("",!0)]),_(Va,{align:"right",style:{padding:"5px 0"}},{default:w(()=>[_(Pe,{value:h(E),type:"active",onOnClick:G[3]||(G[3]=Z=>se())},null,8,["value"]),_(Pe,{value:h(c)("message.cancel"),onOnClick:G[4]||(G[4]=Z=>x.value=!1)},null,8,["value"])]),_:1})]),_:1},8,["title","value"]),_(ja,{value:u.value,"onUpdate:value":G[9]||(G[9]=Z=>u.value=Z),title:h(c)("resource.copyGroup"),shade:!1,padding:"0",width:"400px",overflow:"hidden"},{default:w(()=>[_(Hn,{ref:"chooseGroup",value:g.value,"onUpdate:value":G[6]||(G[6]=Z=>g.value=Z),file:!1,type:e.type,single:!0},null,8,["value","type"]),_(Va,{align:"right",style:{"margin-right":"5px","margin-bottom":"5px"}},{default:w(()=>[_(Pe,{value:h(c)("message.expand"),onOnClick:G[7]||(G[7]=Z=>P.$refs.chooseGroup.expand(!0))},null,8,["value"]),_(Pe,{value:h(c)("message.collapse"),onOnClick:G[8]||(G[8]=Z=>P.$refs.chooseGroup.expand(!1))},null,8,["value"]),_(Pe,{type:"active",value:h(c)("message.copy"),onOnClick:ke},null,8,["value"])]),_:1})]),_:1},8,["value","title"])],32)}}};var zd=q(Gd,[["__scopeId","data-v-713f021e"]]),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:zd},Symbol.toStringTag,{value:"Module"}));const Fe=e=>(ka("data-v-6435d26c"),e=e(),La(),e),qd={class:"magic-script-editor"},Kd={key:0,class:"magic-empty-container"},Wd={class:"magic-hot-key"},Xd=Fe(()=>R("em",null,"Ctrl + S",-1)),Jd=Fe(()=>R("br",null,null,-1)),Qd=Fe(()=>R("em",null,"Ctrl + Q",-1)),Zd=Fe(()=>R("br",null,null,-1)),ep=Fe(()=>R("em",null,"Alt + /",-1)),tp=Fe(()=>R("br",null,null,-1)),ap=Fe(()=>R("em",null,"F8",-1)),np=Fe(()=>R("br",null,null,-1)),ip=Fe(()=>R("em",null,"F6",-1)),sp=Fe(()=>R("br",null,null,-1)),op=Fe(()=>R("em",null,"Ctrl + Alt + L",-1)),rp=Fe(()=>R("br",null,null,-1)),lp=Fe(()=>R("em",null,"Ctrl + E",-1)),cp={key:0},up={class:"magic-monaco-editor-wrapper"},dp={__name:"magic-script-editor",emits:["onLoad"],setup(e,{emit:t}){const{proxy:a}=Tt(),n=We([]),i=U({}),s=U(!0),o=U(null),r=U(null),l=oe("activateUserFiles"),u={String:"java.lang.String",Integer:"java.lang.Integer",Double:"java.lang.Double",Long:"java.lang.Long",Byte:"java.lang.Byte",Short:"java.lang.Short",Float:"java.lang.Float",MultipartFile:"org.springframework.web.multipart.MultipartFile",MultipartFiles:"java.util.List"};na.setEnvironment(()=>{var A;const x={},b=(A=i.value)==null?void 0:A.item,S=M=>M&&Array.isArray(M)&&M.forEach(I=>{I&&typeof I.name=="string"&&I.dataType&&(x[I.name]=u[I.dataType]||"java.lang.Object")});return b&&(S(b==null?void 0:b.parameters),S(b==null?void 0:b.paths)),x});const d=x=>{let b=n.findIndex(S=>S===x);if(n.splice(b,1),x===i.value){let S=n.length;b0&&T.$emit($.OPEN,n[b-1])}T.$emit($.CLOSE,x.item),n.length===0&&(T.$emit($.OPEN_EMPTY),i.value={})};et(n,x=>{De.set(D.RECENT_OPENED_TAB,x.filter(b=>{var S;return(S=b.item)==null?void 0:S.id}).map(b=>b.item.id))});const g=x=>{const b=i.value;if(b&&b.item){const S=i.value.processSave(b.item);return Object.keys(S).forEach(A=>b.item[A]=S[A]),Y.sendJson(`/resource/file/${i.value.type}/save?auto=${x?0:1}`,S).success(A=>{const M=`${b.title}\u300C${b.path()}\u300D`;A?(T.status("message.saveSuccess",!0,M),b.tmpObject=JSON.parse(JSON.stringify(S)),b.item.id!==A&&T.loading(1),b.item.id=A):(T.status("message.saveFailed",!1,M),a.$alert(c("message.saveFailed",M)))})}},f=()=>i.value.doTest(i.value),E=x=>{if(i.value.debuging){o.value.removedDecorations(i.value.debugDecorations),i.value.debuging=!1,i.value.variables=null;const b=(i.value.decorations||[]).filter(S=>S.options.linesDecorationsClassName==="breakpoints").map(S=>S.range.startLineNumber).join("|");T.send(Se.RESUME_BREAKPOINT,[i.value.item.id,x===!0?"1":"0",b].join(","))}},m=(x,b,S)=>{const A=[{label:c("editor.tab.close"),divided:!0,onClick(){d(b)}},{label:c("editor.tab.closeOther"),divided:!0,onClick(){[...n].forEach((M,I)=>I!=S&&d(M))}},{label:c("editor.tab.closeLeft"),onClick(){[...n].forEach((M,I)=>II>S&&d(M))}},{label:c("editor.tab.closeAll"),onClick(){[...n].forEach(M=>d(M))}}];D.PLUGINS.forEach(M=>{if(M.contextmenu&&typeof M.contextmenu=="function"){const I=M.contextmenu({...b,menuType:"editorTab"});I&&I.length&&I.forEach(H=>A.push(H))}}),a.$contextmenu({menus:A,event:x})},L=x=>Object.keys(x.tmpObject||{}).some(b=>{const S=x.tmpObject[b],A=x.item[b];return S===A||b==="properties"||b==="responseBody"||b==="responseBodyDefinition"?!1:typeof S=="object"||typeof A=="object"?JSON.stringify(S)!==JSON.stringify(A):S!==A});T.$on($.LOGOUT,()=>[...n].forEach(x=>d(x))),T.$on($.DELETE_FILE,x=>{const b=n.findIndex(S=>S.item===x);b>-1&&d(n[b])}),T.$on($.RELOAD_RESOURCES_FINISH,()=>[...n].forEach(x=>d(x))),T.$event(Se.LOGIN_RESPONSE,()=>{var x;i.value&&T.send(Se.SET_FILE_ID,((x=i.value.item)==null?void 0:x.id)||"0")});const C=x=>{x&&o.value&&(x.scrollTop=o.value.getScrollTop())};return T.$on($.OPEN,x=>{let b=n.find(S=>S.item===x.item||S.item.id&&S.item.id===x.item.id);T.send(Se.SET_FILE_ID,x.item.id||"0"),b?(i.value=b,s.value=!1,be(()=>o.value.setScrollTop(b.scrollTop||0))):(n.push(x),i.value=x,x.item.id&&!x.item.script?(s.value=!0,Y.sendGet(`/resource/file/${x.item.id}`).success(S=>{T.status("message.getDetail",!0,`${x.title}\u300C${x.path()}\u300D`),Object.keys(S).forEach(A=>x.item[A]=S[A]),x.tmpObject=JSON.parse(JSON.stringify(x.processSave(S))),s.value=!1,be(()=>o.value.setScrollTop(0))})):(x.tmpObject=JSON.parse(JSON.stringify(x.processSave(x.item))),s.value=!1,be(()=>o.value.setScrollTop(0)))),i.value.decorations&&i.value.decorations.length>0&&be(()=>{const S=Be(i.value.decorations);i.value.debugDecorations=o.value.appendDecoration(S).map((A,M)=>{var I;return((I=S[M].options)==null?void 0:I.className)==="debug-line"?A:null}).filter(A=>A!==null)||[]}),be(()=>r.value&&r.value.scrollIntoView(x))}),T.$on($.DO_SAVE,g),T.$on($.DO_TEST,()=>{const x=i.value;x&&x.item&&x.runnable&&x.doTest&&x.running!==!0&&(D.AUTO_SAVE&&x.item.lock!=="1"?g().end(b=>b&&f()):f())}),T.$event(Se.BREAKPOINT,([x,{range:b,variables:S}])=>{var A,M;if(((M=(A=i.value)==null?void 0:A.item)==null?void 0:M.id)!==x){const I=n.find(H=>H.item.id===x);I&&T.$emit($.OPEN,I)}be(()=>{i.value.variables=Ki(S),i.value.debuging=!0,i.value.debugDecorations=[o.value.appendDecoration([{range:new st(b[0],1,b[0],1),options:{isWholeLine:!0,inlineClassName:"debug-line",className:"debug-line"}}])],T.$emit($.SWITCH_TOOLBAR,"debug")})}),T.$on($.DEBUG_CONTINUE,E),T.$on($.DEBUG_SETPINTO,()=>E(!0)),T.$event(Se.EXCEPTION,([[x,b,S]])=>{var A,M;if(((M=(A=i.value)==null?void 0:A.item)==null?void 0:M.id)===x){const I=new st(S[0],S[2],S[1],S[3]+1),H=o.value.getInstance(),N=H.deltaDecorations([],[{range:I,options:{hoverMessage:{value:b},inlineClassName:"squiggly-error"}}]);H.revealRangeInCenter(I),H.focus(),D.DECORATION_TIMEOUT>=0&&setTimeout(()=>H.deltaDecorations(N,[]),D.DECORATION_TIMEOUT)}}),pt(()=>t("onLoad")),(x,b)=>{const S=y("magic-text-icon"),A=y("magic-icon"),M=y("magic-avatar-group"),I=y("magic-tab"),H=y("magic-monaco-editor"),N=y("magic-loading");return v(),k("div",qd,[n.length===0?(v(),k("div",Kd,[R("div",Wd,[R("p",null,[pe(F(h(c)("message.save")),1),Xd,Jd,pe(" "+F(h(c)("message.run")),1),Qd,Zd,pe(" "+F(h(c)("editor.tooltip.complection")),1),ep,tp,pe(" "+F(h(c)("editor.tooltip.resume")),1),ap,np,pe(" "+F(h(c)("editor.tooltip.stepInto")),1),ip,sp,pe(" "+F(h(c)("editor.tooltip.format")),1),op,rp,pe(" "+F(h(c)("editor.tooltip.recent")),1),lp])])])):(v(),k(te,{key:1},[_(I,{value:i.value,"onUpdate:value":b[0]||(b[0]=V=>i.value=V),tabs:n,className:"magic-script-tab",ref_key:"tab",ref:r,"allow-close":!0,onClose:d,onChange:b[1]||(b[1]=V=>h(T).$emit(h($).OPEN,V)),onBeforeChange:C,onItemContextmenu:m},{default:w(({tab:V})=>[_(S,{icon:V.getIcon(V.item)},null,8,["icon"]),pe(F(V.item.name),1),L(V)?(v(),k("span",cp,"*")):X("",!0),V.item.lock===x.$LOCKED?(v(),j(A,{key:1,icon:"lock"})):X("",!0),_(M,{users:h(l)[V.item.id]||[],max:3,size:20},null,8,["users"])]),_:1},8,["value","tabs"]),_(N,{loading:s.value},{default:w(()=>[R("div",up,[i.value.pageType=="component"?(v(),j(ee(i.value.component),{key:0,Message:h($),bus:h(T),request:h(Y),selectTab:i.value},null,8,["Message","bus","request","selectTab"])):(v(),j(H,{key:1,ref_key:"editor",ref:o,value:i.value.item.script,"onUpdate:value":b[2]||(b[2]=V=>i.value.item.script=V),decorations:i.value.decorations,"onUpdate:decorations":b[3]||(b[3]=V=>i.value.decorations=V),language:i.value.language,"support-breakpoint":!0},null,8,["value","decorations","language"]))])]),_:1},8,["loading"])],64))])}}};var pp=q(dp,[["__scopeId","data-v-6435d26c"]]),_p=Object.freeze(Object.defineProperty({__proto__:null,default:pp},Symbol.toStringTag,{value:"Module"}));const Fn={};Object.entries({"./components/magic-editor.vue":po,"./components/common/magic-context-menu.vue":yo,"./components/common/magic-empty.vue":Oo,"./components/common/magic-loading.vue":Io,"./components/common/magic-monaco-diff-editor.vue":Do,"./components/common/magic-monaco-editor.vue":Fo,"./components/common/magic-resizer.vue":jo,"./components/common/data/magic-navbar-item.vue":qo,"./components/common/data/magic-navbar.css":Wo,"./components/common/data/magic-navbar.js":tr,"./components/common/data/magic-tab.css":nr,"./components/common/data/magic-tab.js":sr,"./components/common/data/magic-table-column.vue":rr,"./components/common/data/magic-table.css":cr,"./components/common/data/magic-table.js":dr,"./components/common/data/magic-tree.css":_r,"./components/common/data/magic-tree.js":fr,"./components/common/dialog/magic-alert.vue":Si,"./components/common/dialog/magic-confirm.vue":Oi,"./components/common/dialog/magic-dialog.vue":br,"./components/common/dialog/magic-modal.js":Ri,"./components/common/dialog/magic-notify.vue":Rr,"./components/common/form/magic-button-group.vue":Ir,"./components/common/form/magic-button.vue":Nr,"./components/common/form/magic-checkbox.vue":Pr,"./components/common/form/magic-file.vue":Hr,"./components/common/form/magic-input.vue":zr,"./components/common/form/magic-select.vue":Jr,"./components/common/form/magic-textarea.vue":tl,"./components/common/icon/magic-avatar-group.vue":il,"./components/common/icon/magic-avatar.vue":ll,"./components/common/icon/magic-icon.vue":Zo,"./components/common/icon/magic-text-icon.vue":pl,"./components/panel/api/magic-api-body.vue":gl,"./components/panel/api/magic-api-description.vue":vl,"./components/panel/api/magic-api-group.vue":Tl,"./components/panel/api/magic-api-header.vue":Ol,"./components/panel/api/magic-api-info.vue":Il,"./components/panel/api/magic-api-option.vue":Nl,"./components/panel/api/magic-api-parameter.vue":Ml,"./components/panel/api/magic-api-path.vue":$l,"./components/panel/api/magic-api-request-body.vue":Hl,"./components/panel/api/magic-api-request-structure.vue":Kl,"./components/panel/api/magic-api-response-body.vue":Ql,"./components/panel/api/magic-api-response-header.vue":nc,"./components/panel/api/magic-api-response-structure.vue":cc,"./components/panel/api/magic-api-response.vue":_c,"./components/panel/api/magic-global-header.vue":gc,"./components/panel/api/magic-global-parameter.vue":bc,"./components/panel/api/magic-global.vue":Sc,"./components/panel/common/magic-panel-common-toolbar.vue":Oc,"./components/panel/common/magic-panel-toolbar.vue":kc,"./components/panel/common/magic-resource-choose.vue":Pc,"./components/panel/datasource/magic-datasource-datasource.vue":Xc,"./components/panel/footer/magic-backup-file.vue":tu,"./components/panel/footer/magic-backup.vue":ru,"./components/panel/footer/magic-debug.vue":wu,"./components/panel/footer/magic-event.vue":$u,"./components/panel/footer/magic-log.vue":ju,"./components/panel/footer/magic-online.vue":qu,"./components/panel/footer/magic-status-bar.vue":Zu,"./components/panel/footer/magic-todo.vue":s1,"./components/panel/footer/magic-toolbar.vue":d1,"./components/panel/function/magic-function-info.vue":f1,"./components/panel/function/magic-function-parameter.vue":v1,"./components/panel/header/magic-export.vue":y1,"./components/panel/header/magic-header.vue":D1,"./components/panel/header/magic-push.vue":$1,"./components/panel/header/magic-search.vue":q1,"./components/panel/header/magic-upload.vue":W1,"./components/panel/main/magic-data-resource.vue":nd,"./components/panel/main/magic-login.vue":md,"./components/panel/main/magic-main.vue":kd,"./components/panel/main/magic-recent-opened.vue":Ud,"./components/panel/main/magic-resource.vue":Yd,"./components/panel/main/magic-script-editor.vue":_p}).forEach(([e,t])=>Fn[e.substring(e.lastIndexOf("/")+1,e.lastIndexOf("."))]=t.default);const Ca=e=>{let t;Object.entries(Fn).forEach(([a,n])=>{e.component(a,n)}),e.config.globalProperties.$contextmenu=a=>{t!=null&&t.unmount(),t=Ia(Pn,{menus:a.menus,position:{x:a.event.clientX,y:a.event.clientY},onDestory:()=>{t&&t.unmount(),t=null}}),Ca(t),t.mount(".magic-editor .magic-mounts")},Object.keys(D).forEach(a=>e.config.globalProperties[`$${a}`]=D[a]),mn(e,Ca)};if(typeof window!="undefined"){let e=function(){var t=document.body,a=document.getElementById("__svg__icons__dom__1680935046387__");a||(a=document.createElementNS("http://www.w3.org/2000/svg","svg"),a.style.position="absolute",a.style.width="0",a.style.height="0",a.id="__svg__icons__dom__1680935046387__",a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),a.innerHTML='',t.insertBefore(a,t.firstChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}window.Vue=Qn;const Bn=Ia(li);Bn.use(Ca);Bn.mount("#app");export{Qa as _}; +}`,"finally"]],to={provideCompletionItems:async function(e,t){let a=e.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:t.lineNumber,endColumn:t.column}),n=e.getValueInRange({startLineNumber:t.lineNumber,startColumn:1,endLineNumber:t.lineNumber,endColumn:t.column}),i=e.getWordUntilPosition(t),s={startLineNumber:t.lineNumber,endLineNumber:t.lineNumber,startColumn:i.startColumn,endColumn:i.endColumn},o=!1,r=eo.map(l=>({label:l[0],kind:W.CompletionItemKind.Struct,detail:l[2]||l[1],insertText:l[1],filterText:l[0],insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet,range:s}));return n.length>1&&n.trim().indexOf("import")===0?(Qs(r,t,n,n.indexOf("import")+6),o=!0):n.endsWith("::")?r=["int","long","date","string","short","byte","float","double","json","stringify","sql"].map(l=>({label:l,detail:`\u8F6C\u6362\u4E3A${l==="stringify"?"json\u5B57\u7B26\u4E32":l==="sql"?"sql\u53C2\u6570\u7C7B\u578B":l}`,insertText:l,kind:W.CompletionItemKind.TypeParameter,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet})):a.length>1?await Zs(r,a):await Lt(r,a,{...ea.environmentFunction(),...ae.getAutoImportClass(),...ae.getAutoImportModule()}),{suggestions:r,incomplete:o}},triggerCharacters:[".",":"]};let wn=function(e,t){for(var a=0,n=0,i=e.length;n16777215||a>16777215)){var i=this._length;this._startIndexes[i]=t,this._endIndexes[i]=a,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}}toIndentRanges(t){var a=[];if(this._length<=this._foldingRangesLimit){new Uint32Array(this._length),new Uint32Array(this._length);for(var n=this._length-1,i=0;n>=0;n--,i++)a.push({start:this._startIndexes[n],end:this._endIndexes[n]})}else{for(var s=0,o=this._indentOccurrences.length,n=0;nthis._foldingRangesLimit){o=n;break}s+=r}}var l=t.getOptions().tabSize;new Uint32Array(this._foldingRangesLimit),new Uint32Array(this._foldingRangesLimit);for(var n=this._length-1,i=0;n>=0;n--){var u=this._startIndexes[n],d=t.getLineContent(u),g=wn(d,l);(g{let a=e.getOptions().tabSize,n=new ao(5e3),i=[],s=e.getLineCount()+1,o=-1,r=-1,l=[];i.push({indent:-1,endAbove:s,line:s});for(let d=e.getLineCount();d>0;d--){let g=e.getLineContent(d);g.startsWith("import")||g.trim().startsWith("import")?o==-1?o=d:r=d:(r>-1&&o>-1&&l.push({start:r,end:o,kind:W.FoldingRangeKind.Imports}),r=-1,o=-1);let f=wn(g,a),E=i[i.length-1];if(f!==-1){if(E.indent>f){do i.pop(),E=i[i.length-1];while(E.indent>f);var u=E.endAbove-1;u-d>=1&&n.insertFirst(d,u,f)}E.indent===f?E.endAbove=d:i.push({indent:f,endAbove:d,line:d})}}return r>-1&&o>-1&&l.push({start:r,end:o,kind:W.FoldingRangeKind.Imports}),l.concat(n.toIndentRanges(e))}},io={signatureHelpRetriggerCharacters:["(",","],signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:async(e,t,a,n)=>{if(n.activeSignatureHelp){let s=n.activeSignatureHelp;return s.activeSignature+=1,s.activeSignature===s.signatures.length&&(s.activeSignature=0),{dispose:function(){},value:s}}let i=e.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:t.lineNumber,endColumn:t.column});try{let s=Zt(i),o=new ta(new yt(s));const{best:r,env:l}=await o.parseBest(i.length-1);if(r&&r instanceof Wt){let u=r.target,d=await u.getTarget().getJavaType(l),g=u.member.getText(),f=ae.findMethods(await ae.loadClass(d)),E=[];if(f.filter(m=>m.name===g).forEach(m=>{let N=[];for(let C=m.extension?1:0;C0)return{dispose:function(){},value:{activeParameter:0,activeSignature:0,signatures:E}}}}catch{}}},Sa=(e,t,a)=>{a.push({value:`${e}${t.fullName}`}),t.comment&&a.push({value:`${t.comment}`}),t.parameters.forEach((n,i)=>{(i>0||!t.extension)&&a.push({value:`${n.name}\uFF1A${n.comment||n.type}`})}),a.push({value:`\u8FD4\u56DE\u7C7B\u578B\uFF1A\`${t.returnType}\``})},la=(e,t,a,n)=>{let i=ae.findFunction().filter(s=>s.name===e);if(i.length>0)Sa("",i[0],a);else{let s=t[e];if(s&&s.indexOf("@")===0){let o=s.substring(1),r=ae.getOnlineFunction(o);if(r){let l=Array.isArray(r.parameter)?r.parameter:JSON.parse(r.parameter||"[]");l.forEach(u=>u.comment=u.description),Sa("",{fullName:e+" "+r.name,comment:r.description||"",parameters:l,returnType:r.returnType},a)}}else a.push({value:`${n?"\u521B\u5EFA\u5BF9\u8C61":"\u8BBF\u95EE\u53D8\u91CF"}\uFF1A${e}`}),a.push({value:`\u7C7B\u578B\uFF1A${s||"unknow"}`})}},so={provideHover:async(e,t)=>{var u,d,g;let a=e.getValue(),n=Zt(a),i=new yt(n),s=new ta(i),o=s.parse(!0),l=e.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:t.lineNumber,endColumn:t.column}).length;for(let f=0,E=o.length;fM.name===A).forEach(M=>Sa(`${ae.getSimpleClass(b)}.`,M,C)),ae.findEnums(S).filter(M=>M===A).forEach(M=>{C.push({value:`\u8BBF\u95EE\u679A\u4E3E\uFF1A\`${b}.${A}\``})}),ae.findAttributes(S).filter(M=>M.name===A).forEach(M=>{C.push({value:`\u8BBF\u95EE\u5C5E\u6027\uFF1A\`${b}.${A}\``}),M.comment&&C.push({value:`${M.comment}`}),C.push({value:`\u5C5E\u6027\u7C7B\u578B\uFF1A\`${M.type}\``})}),x=m.member.getLine()}else if(m instanceof ba){let b=m.target;la(b.variable,N,C)}else if(m instanceof Dt){let b=m.identifier;b instanceof Ke&&la(b,N,C,!0)}else if(m instanceof Yt)C.push({value:"\u8BBF\u95EEMap\u6216\u6570\u7EC4"});else if(m instanceof Ln)C.push({value:"linq\u67E5\u8BE2"});else return;return{range:new st(x.lineNumber,x.startCol,x.endLineNumber,x.endCol+1),contents:C}}}}},oo=()=>{const e="mybatis";W.register({id:e}),W.setLanguageConfiguration(e,{comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]}),W.setMonarchTokensProvider(e,{defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT_AFTER_WAIT","ABSENT","ABSOLUTE","ACCENT_SENSITIVITY","ACTION","ACTIVATION","ACTIVE","ADD","ADDRESS","ADMIN","AES","AES_128","AES_192","AES_256","AFFINITY","AFTER","AGGREGATE","ALGORITHM","ALL_CONSTRAINTS","ALL_ERRORMSGS","ALL_INDEXES","ALL_LEVELS","ALL_SPARSE_COLUMNS","ALLOW_CONNECTIONS","ALLOW_MULTIPLE_EVENT_LOSS","ALLOW_PAGE_LOCKS","ALLOW_ROW_LOCKS","ALLOW_SINGLE_EVENT_LOSS","ALLOW_SNAPSHOT_ISOLATION","ALLOWED","ALTER","ANONYMOUS","ANSI_DEFAULTS","ANSI_NULL_DEFAULT","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_NULLS","ANSI_PADDING","ANSI_WARNINGS","APPEND","APPLICATION","APPLICATION_LOG","ARITHABORT","ARITHIGNORE","AS","ASC","ASSEMBLY","ASYMMETRIC","ASYNCHRONOUS_COMMIT","AT","ATOMIC","ATTACH","ATTACH_REBUILD_LOG","AUDIT","AUDIT_GUID","AUTHENTICATION","AUTHORIZATION","AUTO","AUTO_CLEANUP","AUTO_CLOSE","AUTO_CREATE_STATISTICS","AUTO_SHRINK","AUTO_UPDATE_STATISTICS","AUTO_UPDATE_STATISTICS_ASYNC","AUTOMATED_BACKUP_PREFERENCE","AUTOMATIC","AVAILABILITY","AVAILABILITY_MODE","BACKUP","BACKUP_PRIORITY","BASE64","BATCHSIZE","BEGIN","BEGIN_DIALOG","BIGINT","BINARY","BINDING","BIT","BLOCKERS","BLOCKSIZE","BOUNDING_BOX","BREAK","BROKER","BROKER_INSTANCE","BROWSE","BUCKET_COUNT","BUFFER","BUFFERCOUNT","BULK","BULK_LOGGED","BY","CACHE","CALL","CALLED","CALLER","CAP_CPU_PERCENT","CASCADE","CASE","CATALOG","CATCH","CELLS_PER_OBJECT","CERTIFICATE","CHANGE_RETENTION","CHANGE_TRACKING","CHANGES","CHAR","CHARACTER","CHECK","CHECK_CONSTRAINTS","CHECK_EXPIRATION","CHECK_POLICY","CHECKALLOC","CHECKCATALOG","CHECKCONSTRAINTS","CHECKDB","CHECKFILEGROUP","CHECKIDENT","CHECKPOINT","CHECKTABLE","CLASSIFIER_FUNCTION","CLEANTABLE","CLEANUP","CLEAR","CLOSE","CLUSTER","CLUSTERED","CODEPAGE","COLLATE","COLLECTION","COLUMN","COLUMN_SET","COLUMNS","COLUMNSTORE","COLUMNSTORE_ARCHIVE","COMMIT","COMMITTED","COMPATIBILITY_LEVEL","COMPRESSION","COMPUTE","CONCAT","CONCAT_NULL_YIELDS_NULL","CONFIGURATION","CONNECT","CONSTRAINT","CONTAINMENT","CONTENT","CONTEXT","CONTINUE","CONTINUE_AFTER_ERROR","CONTRACT","CONTRACT_NAME","CONTROL","CONVERSATION","COOKIE","COPY_ONLY","COUNTER","CPU","CREATE","CREATE_NEW","CREATION_DISPOSITION","CREDENTIAL","CRYPTOGRAPHIC","CUBE","CURRENT","CURRENT_DATE","CURSOR","CURSOR_CLOSE_ON_COMMIT","CURSOR_DEFAULT","CYCLE","DATA","DATA_COMPRESSION","DATA_PURITY","DATABASE","DATABASE_DEFAULT","DATABASE_MIRRORING","DATABASE_SNAPSHOT","DATAFILETYPE","DATE","DATE_CORRELATION_OPTIMIZATION","DATEFIRST","DATEFORMAT","DATETIME","DATETIME2","DATETIMEOFFSET","DAY","DAYOFYEAR","DAYS","DB_CHAINING","DBCC","DBREINDEX","DDL_DATABASE_LEVEL_EVENTS","DEADLOCK_PRIORITY","DEALLOCATE","DEC","DECIMAL","DECLARE","DECRYPTION","DEFAULT","DEFAULT_DATABASE","DEFAULT_FULLTEXT_LANGUAGE","DEFAULT_LANGUAGE","DEFAULT_SCHEMA","DEFINITION","DELAY","DELAYED_DURABILITY","DELETE","DELETED","DENSITY_VECTOR","DENY","DEPENDENTS","DES","DESC","DESCRIPTION","DESX","DHCP","DIAGNOSTICS","DIALOG","DIFFERENTIAL","DIRECTORY_NAME","DISABLE","DISABLE_BROKER","DISABLED","DISK","DISTINCT","DISTRIBUTED","DOCUMENT","DOUBLE","DROP","DROP_EXISTING","DROPCLEANBUFFERS","DUMP","DURABILITY","DYNAMIC","EDITION","ELEMENTS","ELSE","EMERGENCY","EMPTY","EMPTYFILE","ENABLE","ENABLE_BROKER","ENABLED","ENCRYPTION","END","ENDPOINT","ENDPOINT_URL","ERRLVL","ERROR","ERROR_BROKER_CONVERSATIONS","ERRORFILE","ESCAPE","ESTIMATEONLY","EVENT","EVENT_RETENTION_MODE","EXEC","EXECUTABLE","EXECUTE","EXIT","EXPAND","EXPIREDATE","EXPIRY_DATE","EXPLICIT","EXTENDED_LOGICAL_CHECKS","EXTENSION","EXTERNAL","EXTERNAL_ACCESS","FAIL_OPERATION","FAILOVER","FAILOVER_MODE","FAILURE_CONDITION_LEVEL","FALSE","FAN_IN","FAST","FAST_FORWARD","FETCH","FIELDTERMINATOR","FILE","FILEGROUP","FILEGROWTH","FILELISTONLY","FILENAME","FILEPATH","FILESTREAM","FILESTREAM_ON","FILETABLE_COLLATE_FILENAME","FILETABLE_DIRECTORY","FILETABLE_FULLPATH_UNIQUE_CONSTRAINT_NAME","FILETABLE_NAMESPACE","FILETABLE_PRIMARY_KEY_CONSTRAINT_NAME","FILETABLE_STREAMID_UNIQUE_CONSTRAINT_NAME","FILLFACTOR","FILTERING","FIRE_TRIGGERS","FIRST","FIRSTROW","FLOAT","FMTONLY","FOLLOWING","FOR","FORCE","FORCE_FAILOVER_ALLOW_DATA_LOSS","FORCE_SERVICE_ALLOW_DATA_LOSS","FORCED","FORCEPLAN","FORCESCAN","FORCESEEK","FOREIGN","FORMATFILE","FORMSOF","FORWARD_ONLY","FREE","FREEPROCCACHE","FREESESSIONCACHE","FREESYSTEMCACHE","FROM","FULL","FULLSCAN","FULLTEXT","FUNCTION","GB","GEOGRAPHY_AUTO_GRID","GEOGRAPHY_GRID","GEOMETRY_AUTO_GRID","GEOMETRY_GRID","GET","GLOBAL","GO","GOTO","GOVERNOR","GRANT","GRIDS","GROUP","GROUP_MAX_REQUESTS","HADR","HASH","HASHED","HAVING","HEADERONLY","HEALTH_CHECK_TIMEOUT","HELP","HIERARCHYID","HIGH","HINT","HISTOGRAM","HOLDLOCK","HONOR_BROKER_PRIORITY","HOUR","HOURS","IDENTITY","IDENTITY_INSERT","IDENTITY_VALUE","IDENTITYCOL","IF","IGNORE_CONSTRAINTS","IGNORE_DUP_KEY","IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX","IGNORE_TRIGGERS","IMAGE","IMMEDIATE","IMPERSONATE","IMPLICIT_TRANSACTIONS","IMPORTANCE","INCLUDE","INCREMENT","INCREMENTAL","INDEX","INDEXDEFRAG","INFINITE","INFLECTIONAL","INIT","INITIATOR","INPUT","INPUTBUFFER","INSENSITIVE","INSERT","INSERTED","INSTEAD","INT","INTEGER","INTO","IO","IP","ISABOUT","ISOLATION","JOB","KB","KEEP","KEEP_CDC","KEEP_NULLS","KEEP_REPLICATION","KEEPDEFAULTS","KEEPFIXED","KEEPIDENTITY","KEEPNULLS","KERBEROS","KEY","KEY_SOURCE","KEYS","KEYSET","KILL","KILOBYTES_PER_BATCH","LABELONLY","LANGUAGE","LAST","LASTROW","LEVEL","LEVEL_1","LEVEL_2","LEVEL_3","LEVEL_4","LIFETIME","LIMIT","LINENO","LIST","LISTENER","LISTENER_IP","LISTENER_PORT","LOAD","LOADHISTORY","LOB_COMPACTION","LOCAL","LOCAL_SERVICE_NAME","LOCK_ESCALATION","LOCK_TIMEOUT","LOGIN","LOGSPACE","LOOP","LOW","MANUAL","MARK","MARK_IN_USE_FOR_REMOVAL","MASTER","MAX_CPU_PERCENT","MAX_DISPATCH_LATENCY","MAX_DOP","MAX_DURATION","MAX_EVENT_SIZE","MAX_FILES","MAX_IOPS_PER_VOLUME","MAX_MEMORY","MAX_MEMORY_PERCENT","MAX_QUEUE_READERS","MAX_ROLLOVER_FILES","MAX_SIZE","MAXDOP","MAXERRORS","MAXLENGTH","MAXRECURSION","MAXSIZE","MAXTRANSFERSIZE","MAXVALUE","MB","MEDIADESCRIPTION","MEDIANAME","MEDIAPASSWORD","MEDIUM","MEMBER","MEMORY_OPTIMIZED","MEMORY_OPTIMIZED_DATA","MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT","MEMORY_PARTITION_MODE","MERGE","MESSAGE","MESSAGE_FORWARD_SIZE","MESSAGE_FORWARDING","MICROSECOND","MILLISECOND","MIN_CPU_PERCENT","MIN_IOPS_PER_VOLUME","MIN_MEMORY_PERCENT","MINUTE","MINUTES","MINVALUE","MIRROR","MIRROR_ADDRESS","MODIFY","MONEY","MONTH","MOVE","MULTI_USER","MUST_CHANGE","NAME","NANOSECOND","NATIONAL","NATIVE_COMPILATION","NCHAR","NEGOTIATE","NESTED_TRIGGERS","NEW_ACCOUNT","NEW_BROKER","NEW_PASSWORD","NEWNAME","NEXT","NO","NO_BROWSETABLE","NO_CHECKSUM","NO_COMPRESSION","NO_EVENT_LOSS","NO_INFOMSGS","NO_TRUNCATE","NO_WAIT","NOCHECK","NOCOUNT","NOEXEC","NOEXPAND","NOFORMAT","NOINDEX","NOINIT","NOLOCK","NON","NON_TRANSACTED_ACCESS","NONCLUSTERED","NONE","NORECOMPUTE","NORECOVERY","NORESEED","NORESET","NOREWIND","NORMAL","NOSKIP","NOTIFICATION","NOTRUNCATE","NOUNLOAD","NOWAIT","NTEXT","NTLM","NUMANODE","NUMERIC","NUMERIC_ROUNDABORT","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OLD_ACCOUNT","OLD_PASSWORD","ON","ON_FAILURE","ONLINE","ONLY","OPEN","OPEN_EXISTING","OPENTRAN","OPTIMISTIC","OPTIMIZE","OPTION","ORDER","OUT","OUTPUT","OUTPUTBUFFER","OVER","OVERRIDE","OWNER","OWNERSHIP","PAD_INDEX","PAGE","PAGE_VERIFY","PAGECOUNT","PAGLOCK","PARAMETERIZATION","PARSEONLY","PARTIAL","PARTITION","PARTITIONS","PARTNER","PASSWORD","PATH","PER_CPU","PER_NODE","PERCENT","PERMISSION_SET","PERSISTED","PHYSICAL_ONLY","PLAN","POISON_MESSAGE_HANDLING","POOL","POPULATION","PORT","PRECEDING","PRECISION","PRIMARY","PRIMARY_ROLE","PRINT","PRIOR","PRIORITY","PRIORITY_LEVEL","PRIVATE","PRIVILEGES","PROC","PROCCACHE","PROCEDURE","PROCEDURE_NAME","PROCESS","PROFILE","PROPERTY","PROPERTY_DESCRIPTION","PROPERTY_INT_ID","PROPERTY_SET_GUID","PROVIDER","PROVIDER_KEY_NAME","PUBLIC","PUT","QUARTER","QUERY","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUEUE_DELAY","QUOTED_IDENTIFIER","RAISERROR","RANGE","RAW","RC2","RC4","RC4_128","READ","READ_COMMITTED_SNAPSHOT","READ_ONLY","READ_ONLY_ROUTING_LIST","READ_ONLY_ROUTING_URL","READ_WRITE","READ_WRITE_FILEGROUPS","READCOMMITTED","READCOMMITTEDLOCK","READONLY","READPAST","READTEXT","READUNCOMMITTED","READWRITE","REAL","REBUILD","RECEIVE","RECOMPILE","RECONFIGURE","RECOVERY","RECURSIVE","RECURSIVE_TRIGGERS","REFERENCES","REGENERATE","RELATED_CONVERSATION","RELATED_CONVERSATION_GROUP","RELATIVE","REMOTE","REMOTE_PROC_TRANSACTIONS","REMOTE_SERVICE_NAME","REMOVE","REORGANIZE","REPAIR_ALLOW_DATA_LOSS","REPAIR_FAST","REPAIR_REBUILD","REPEATABLE","REPEATABLEREAD","REPLICA","REPLICATION","REQUEST_MAX_CPU_TIME_SEC","REQUEST_MAX_MEMORY_GRANT_PERCENT","REQUEST_MEMORY_GRANT_TIMEOUT_SEC","REQUIRED","RESAMPLE","RESEED","RESERVE_DISK_SPACE","RESET","RESOURCE","RESTART","RESTORE","RESTRICT","RESTRICTED_USER","RESULT","RESUME","RETAINDAYS","RETENTION","RETURN","RETURNS","REVERT","REVOKE","REWIND","REWINDONLY","ROBUST","ROLE","ROLLBACK","ROLLUP","ROOT","ROUTE","ROW","ROWCOUNT","ROWGUIDCOL","ROWLOCK","ROWS","ROWS_PER_BATCH","ROWTERMINATOR","ROWVERSION","RSA_1024","RSA_2048","RSA_512","RULE","SAFE","SAFETY","SAMPLE","SAVE","SCHEDULER","SCHEMA","SCHEMA_AND_DATA","SCHEMA_ONLY","SCHEMABINDING","SCHEME","SCROLL","SCROLL_LOCKS","SEARCH","SECOND","SECONDARY","SECONDARY_ONLY","SECONDARY_ROLE","SECONDS","SECRET","SECURITY_LOG","SECURITYAUDIT","SELECT","SELECTIVE","SELF","SEND","SENT","SEQUENCE","SERIALIZABLE","SERVER","SERVICE","SERVICE_BROKER","SERVICE_NAME","SESSION","SESSION_TIMEOUT","SET","SETS","SETUSER","SHOW_STATISTICS","SHOWCONTIG","SHOWPLAN","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SHRINKDATABASE","SHRINKFILE","SHUTDOWN","SID","SIGNATURE","SIMPLE","SINGLE_BLOB","SINGLE_CLOB","SINGLE_NCLOB","SINGLE_USER","SINGLETON","SIZE","SKIP","SMALLDATETIME","SMALLINT","SMALLMONEY","SNAPSHOT","SORT_IN_TEMPDB","SOURCE","SPARSE","SPATIAL","SPATIAL_WINDOW_MAX_CELLS","SPECIFICATION","SPLIT","SQL","SQL_VARIANT","SQLPERF","STANDBY","START","START_DATE","STARTED","STARTUP_STATE","STAT_HEADER","STATE","STATEMENT","STATIC","STATISTICAL_SEMANTICS","STATISTICS","STATISTICS_INCREMENTAL","STATISTICS_NORECOMPUTE","STATS","STATS_STREAM","STATUS","STATUSONLY","STOP","STOP_ON_ERROR","STOPAT","STOPATMARK","STOPBEFOREMARK","STOPLIST","STOPPED","SUBJECT","SUBSCRIPTION","SUPPORTED","SUSPEND","SWITCH","SYMMETRIC","SYNCHRONOUS_COMMIT","SYNONYM","SYSNAME","SYSTEM","TABLE","TABLERESULTS","TABLESAMPLE","TABLOCK","TABLOCKX","TAKE","TAPE","TARGET","TARGET_RECOVERY_TIME","TB","TCP","TEXT","TEXTIMAGE_ON","TEXTSIZE","THEN","THESAURUS","THROW","TIES","TIME","TIMEOUT","TIMER","TIMESTAMP","TINYINT","TO","TOP","TORN_PAGE_DETECTION","TRACEOFF","TRACEON","TRACESTATUS","TRACK_CAUSALITY","TRACK_COLUMNS_UPDATED","TRAN","TRANSACTION","TRANSFER","TRANSFORM_NOISE_WORDS","TRIGGER","TRIPLE_DES","TRIPLE_DES_3KEY","TRUE","TRUNCATE","TRUNCATEONLY","TRUSTWORTHY","TRY","TSQL","TWO_DIGIT_YEAR_CUTOFF","TYPE","TYPE_WARNING","UNBOUNDED","UNCHECKED","UNCOMMITTED","UNDEFINED","UNIQUE","UNIQUEIDENTIFIER","UNKNOWN","UNLIMITED","UNLOAD","UNSAFE","UPDATE","UPDATETEXT","UPDATEUSAGE","UPDLOCK","URL","USE","USED","USER","USEROPTIONS","USING","VALID_XML","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","VERIFYONLY","VERSION","VIEW","VIEW_METADATA","VIEWS","VISIBILITY","WAIT_AT_LOW_PRIORITY","WAITFOR","WEEK","WEIGHT","WELL_FORMED_XML","WHEN","WHERE","WHILE","WINDOWS","WITH","WITHIN","WITHOUT","WITNESS","WORK","WORKLOAD","WRITETEXT","XACT_ABORT","XLOCK","XMAX","XMIN","XML","XMLDATA","XMLNAMESPACES","XMLSCHEMA","XQUERY","XSINIL","YEAR","YMAX","YMIN"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/(<)(where|set|foreach|if|trim|elseif|else)/,["delimiter",{token:"tag",next:"@xml"}]],[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]],xml:[[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@xmlEmbedded",nextEmbedded:"mybatis"}],[/[ \t\r\n]+/],[/(<\/)(where|if|set|foreach|trim|elseif|else)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],xmlEmbedded:[[/<\/(where|if|set|foreach|trim|elseif|else)/,{token:"tag",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}})},ro=()=>{oo();const e="magicscript";W.register({id:e}),W.setLanguageConfiguration(e,{wordPattern:/(-?\d*\.\d\w*)|([^`~!#%^&*()\-=+[{\]}\\|;:'",.<>/?\s]+)/g,brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:W.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:W.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:W.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:W.IndentAction.None,removeText:1}}],comments:{lineComment:"//",blockComment:["/*","*/"]},operators:["<=",">=","==","!=","+","-","*","/","%","&","|","!","&&","||","?",":","++","--","+=","-=","*=","/="],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string.multi"]},{open:"",close:""},{open:"'},{open:"'},{open:""},{open:"",close:""},{open:"",close:""},{open:"'},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]},{open:"/**",close:" */",notIn:["string"]}]}),W.setMonarchTokensProvider(e,pa),W.registerCompletionItemProvider(e,to),W.registerFoldingRangeProvider(e,no),W.registerSignatureHelpProvider(e,io),W.registerHoverProvider(e,so),W.registerDocumentFormattingEditProvider(e,{provideDocumentFormattingEdits(t,a,n){return[{text:new re(t.getValue()).beautify(),range:t.getFullModelRange()}]}}),W.registerCompletionItemProvider("html",{triggerCharacters:[">"],provideCompletionItems:(t,a)=>{var o;const i=(o=t.getValueInRange({startLineNumber:a.lineNumber,startColumn:1,endLineNumber:a.lineNumber,endColumn:a.column}).match(/.*<(\w+)>$/))==null?void 0:o[1];if(!i)return;const s=t.getWordUntilPosition(a);return{suggestions:[{label:``,kind:W.CompletionItemKind.EnumMember,insertText:`$1`,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet,range:{startLineNumber:a.lineNumber,endLineNumber:a.lineNumber,startColumn:s.startColumn,endColumn:s.endColumn}}]}}})};function Oe(e,t,a){var n={debug:!1,automaticOpen:!0,reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,timeoutInterval:2e3,maxReconnectAttempts:null,binaryType:"blob"};a||(a={});for(var i in n)typeof a[i]!="undefined"?this[i]=a[i]:this[i]=n[i];this.url=e,this.reconnectAttempts=0,this.readyState=WebSocket.CONNECTING,this.protocol=null;var s=this,o,r=!1,l=!1,u=document.createElement("div");u.addEventListener("open",function(g){s.onopen(g)}),u.addEventListener("close",function(g){s.onclose(g)}),u.addEventListener("connecting",function(g){s.onconnecting(g)}),u.addEventListener("message",function(g){s.onmessage(g)}),u.addEventListener("error",function(g){s.onerror(g)}),this.addEventListener=u.addEventListener.bind(u),this.removeEventListener=u.removeEventListener.bind(u),this.dispatchEvent=u.dispatchEvent.bind(u);function d(g,f){var E=document.createEvent("CustomEvent");return E.initCustomEvent(g,!1,!1,f),E}this.open=function(g){if(o=new WebSocket(s.url,t||[]),o.binaryType=this.binaryType,g){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else u.dispatchEvent(d("connecting")),this.reconnectAttempts=0;(s.debug||Oe.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",s.url);var f=o,E=setTimeout(function(){(s.debug||Oe.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",s.url),l=!0,f.close(),l=!1},s.timeoutInterval);o.onopen=function(m){clearTimeout(E),(s.debug||Oe.debugAll)&&console.debug("ReconnectingWebSocket","onopen",s.url),s.protocol=o.protocol,s.readyState=WebSocket.OPEN,s.reconnectAttempts=0;var N=d("open");N.isReconnect=g,g=!1,u.dispatchEvent(N)},o.onclose=function(m){if(clearTimeout(C),o=null,r)s.readyState=WebSocket.CLOSED,u.dispatchEvent(d("close"));else{s.readyState=WebSocket.CONNECTING;var N=d("connecting");N.code=m.code,N.reason=m.reason,N.wasClean=m.wasClean,u.dispatchEvent(N),!g&&!l&&((s.debug||Oe.debugAll)&&console.debug("ReconnectingWebSocket","onclose",s.url),u.dispatchEvent(d("close")));var C=s.reconnectInterval*Math.pow(s.reconnectDecay,s.reconnectAttempts);setTimeout(function(){s.reconnectAttempts++,s.open(!0)},C>s.maxReconnectInterval?s.maxReconnectInterval:C)}},o.onmessage=function(m){(s.debug||Oe.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",s.url,m.data);var N=d("message");N.data=m.data,u.dispatchEvent(N)},o.onerror=function(m){(s.debug||Oe.debugAll)&&console.debug("ReconnectingWebSocket","onerror",s.url,m),u.dispatchEvent(d("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(g){if(o)return(s.debug||Oe.debugAll)&&console.debug("ReconnectingWebSocket","send",s.url,g),o.send(g);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(g,f){typeof g=="undefined"&&(g=1e3),r=!0,o&&o.close(g,f)},this.refresh=function(){o&&o.close()}}Oe.prototype.onopen=function(e){};Oe.prototype.onclose=function(e){};Oe.prototype.onconnecting=function(e){};Oe.prototype.onmessage=function(e){};Oe.prototype.onerror=function(e){};Oe.debugAll=!1;Oe.CONNECTING=WebSocket.CONNECTING;Oe.OPEN=WebSocket.OPEN;Oe.CLOSING=WebSocket.CLOSING;Oe.CLOSED=WebSocket.CLOSED;let ca={};function jt(e){if(ca[e])try{ca[e].close()}catch{}this.listeners={},this.future=new Promise(t=>{this.resolve=t,this.socket=new Oe(e,null,{timeoutInterval:1e4}),ca[e]=this,this.socket.onmessage=this.messageReceived,this.socket.onconnecting=()=>{this.future=new Promise(a=>this.resolve=a),T.status("message.connectDebugServer")},this.socket.onopen=()=>{T.status("message.connectDebugServerSuccess"),T.$emit("ws_open"),this.resolve()},this.socket.onclose=()=>{T.status("message.debugServerClose"),T.$emit("ws_close")}})}jt.prototype.on=function(e,t){this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)};jt.prototype.messageReceived=function(e){let t=e.data,a=t.indexOf(","),n=a===-1?t:t.substring(0,a),i=[];for(;a>-1;){if(t=t.substring(a+1),t.startsWith("[")||t.startsWith("{")){i.push(JSON.parse(t));break}a=t.indexOf(","),i.push(a===-1?t:t.substring(0,a))}T.$emit("ws_"+n,i)};jt.prototype.send=function(e){this.future.then(()=>{this.socket.send(e)})};jt.prototype.close=function(){this.socket.close()};var Se={OPEN:"open",BREAKPOINT:"breakpoint",LOGIN:"login",RESUME_BREAKPOINT:"resume_breakpoint",LOGIN_RESPONSE:"login_response",REFRESH_TOKEN:"refresh_token",LOG:"log",LOGS:"logs",EXCEPTION:"exception",USER_LOGIN:"user_login",USER_LOGOUT:"user_logout",ONLINE_USERS:"online_users",SET_FILE_ID:"set_file_id",INTO_FILE_ID:"into_file_id",PING:"ping",PONG:"pong"};const lo=R("div",{class:"magic-mounts"},null,-1),co={__name:"magic-editor",props:{config:{type:Object,required:!0}},setup(e){const t=e;ro(),Ye("bus",T),self.MonacoEnvironment={getWorker:function(L,j){return j==="json"?new Qn:j==="html"?new Zn:new ei}},t.config.header=t.config.header||{};const a=U(!1),n=U(null),i=U(null),s=U(!1),o=U(null);Ye("ELEMENT_ROOT",i),Ye("activateUserFiles",U({}));let r=null;const l=t.config;D.BASE_URL=l.baseURL||"",D.SERVER_URL=l.serverURL||"";let u=`${location.protocol}//${location.host}${location.pathname}`.replace("/index.html","");D.BASE_URL.startsWith("http")?u=D.BASE_URL:D.BASE_URL.startsWith("/")?u=`${location.protocol}/${location.host}${D.BASE_URL}`:u=u+"/"+D.BASE_URL,l.blockClose!==!1&&(window.onbeforeunload=()=>"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002");const d=l.request||{beforeSend:L=>L,onError:L=>Promise.reject(L)};Y.getAxios().interceptors.request.use(L=>d.beforeSend&&d.beforeSend(L)||L,L=>d.onError&&d.onError(L)||Promise.reject(L));const g=l.response||{onSuccess:L=>L,onError:L=>Promise.reject(L)};Y.getAxios().interceptors.response.use(L=>g.onSuccess&&g.onSuccess(L)||L,L=>g.onError&&g.onError(L)||Promise.reject(L)),Y.setBaseURL(D.BASE_URL),D.AUTO_SAVE=l.autoSave!==!1,T.status("message.loadClass"),Ye("i18n.format",c);const f=()=>new Promise(L=>{Y.sendGet("/plugins").success(j=>Promise.all((j||[]).filter(ie=>ie.javascriptFilename).map(ie=>new Promise(se=>{T.status("plugin.loading",!0,ie.name),Wi(it(u+"/plugins/"+ie.javascriptFilename)).then(()=>{D.PLUGINS.push(window[ie.globalName]({i18n:{add:mi,format:c},request:Y,constants:D,Message:$,bus:T,modal:me,JavaClass:ae,monaco:ti})),T.status("plugin.loaded",!0,ie.name),se()}).catch(J=>{T.status("plugin.loadFailed",!1,ie.name),se()})}))).then(()=>L())).error(()=>L())}),E=bt().appContext.app;Promise.all([ae.initClasses(),ae.initImportClass(),f()]).then(()=>T.status("message.loadClassFinish")).catch(L=>{T.status("message.loadClassError")}).finally(()=>{D.PLUGINS.forEach(L=>{L.datasources&&L.datasources.filter(j=>j.component).forEach(j=>{E.component(`magic-datasource-${j.type}`,j.component)})}),s.value=!0});const m=t.config.options||[];Ye("options",m),Y.sendGet("/options").success(L=>{L.forEach(j=>m.push(j))});const N=()=>{D.LOGINED=!0,r=new jt(it(u.replace(/^http/,"ws")+"/console")),be(()=>n.value.loadResources())};T.$on($.LOGINED,N);const C=()=>{fetch("https://console.ssssssss.org.cn/latest?group=org.ssssssss&artifactId=magic-api&from="+D.MAGIC_API_VERSION_TEXT).then(L=>{t.config.checkUpdate!==!1&&L.status===200&&L.json().then(j=>{j.version&&j.version!=="unknown"&&D.config.version!==j.version?(T.status("message.newVersionRelease",!0,j.version),j.version!==De.get(D.IGNORE_VERSION)&&T.$emit($.NOTIFY,{title:c("message.tips"),icon:"warning",content:c("message.versionUpdate",j.version),buttons:[{title:c("message.changelog"),onClick:()=>{window.open("http://www.ssssssss.org/magic-api/changelog.html")}},{title:c("message.ignore"),onClick:()=>{De.set(D.IGNORE_VERSION,j.version)}}]})):T.status("message.versionLastest")})})},x=()=>l.getMagicTokenValue&&l.getMagicTokenValue()||De.get(D.STORE.token)||D.HEADER_MAGIC_TOKEN_VALUE,b=()=>new Promise(L=>{D.HEADER_MAGIC_TOKEN_VALUE=x(),T.status("message.tryAutoLogin"),Y.sendPost("/login").success(j=>{a.value=!j,j&&be(()=>{T.status("message.autoLoginSuccess"),T.$emit($.LOGINED)})}).end(L)}),S=()=>{typeof hideMaLoading=="function"&&hideMaLoading()},A=()=>{Y.execute({url:"/config.json",method:"get"}).then(L=>{if(D.config=L.data,t.config.inJar&&location.href.indexOf(L.data.web)>-1){let j=location.href.substring(0,location.href.indexOf(L.data.web));D.SERVER_URL=it(j+"/"+(L.data.prefix||""))}D.config.version&&D.config.version!==D.MAGIC_API_VERSION_TEXT&&(T.status("message.versionConflict",!1,D.MAGIC_API_VERSION_TEXT,D.config.version),T.$emit($.NOTIFY,{icon:"error",title:c("message.versionCheck"),content:c("message.versionConflict",D.MAGIC_API_VERSION_TEXT,D.config.version)})),b().then(()=>{S(),C()})}).catch(L=>{console.error(L),S(),o.value=c("message.loadConfigError")})},M=()=>{const L=document.body;ce.bind(L,ce.Ctrl|ce.S,()=>T.$emit($.DO_SAVE,!0)),ce.bind(L,ce.Ctrl|ce.Q,()=>T.$emit($.DO_TEST)),ce.bind(L,ce.Ctrl|ce.E,()=>T.$emit($.DO_RECENT)),ce.bind(L,ce.F8,()=>T.$emit($.DEBUG_CONTINUE)),ce.bind(L,ce.F6,()=>T.$emit($.DEBUG_SETPINTO)),ce.bind(L,ce.Ctrl|ce.Shift|ce.F,()=>T.$emit($.DO_SEARCH))};pt(()=>{M()}),jn(()=>ce.unbind());const I=We({});Ot("default",Zi),Ot("dark",es),Ot("gray-new",ts),Ot("dark-new",as),Object.keys(l.themes||{}).forEach(L=>{Ot(L,l.themes[L])}),D.THEME=l.theme||"default",D.DEFAULT_EXPAND=l.defaultExpand!==!1,D.JDBC_DRIVERS=l.jdbcDrivers||D.JDBC_DRIVERS,D.DATASOURCE_TYPES=l.datasourceTypes||D.DATASOURCE_TYPES,l.editorFontFamily!==void 0&&(D.EDITOR_FONT_FAMILY=l.editorFontFamily),l.editorFontSize!==void 0&&(D.EDITOR_FONT_SIZE=l.editorFontSize),D.FONT_LIGATURES=l.fontLigatures!==!1,l.logMaxRows!==void 0&&(D.LOG_MAX_ROWS=Math.max(l.logMaxRows,10)),l.decorationTimeout!==void 0&&(D.DECORATION_TIMEOUT=l.decorationTimeout),T.$on($.MESSAGE,(L,j)=>{r&&(j?r.send(`${L},${j}`):r.send(L))}),T.$event(Se.OPEN,()=>{D.CLIENT_ID=zi(16),be(()=>T.send(Se.LOGIN,[x(),D.CLIENT_ID].join(",")))}),T.$event(Se.LOGIN_RESPONSE,([L,j])=>{L==="1"&&(D.user=j)}),T.$event(Se.REFRESH_TOKEN,([L])=>{D.HEADER_MAGIC_TOKEN_VALUE=L,De.set(D.STORE.token,D.HEADER_MAGIC_TOKEN_VALUE)});const H=()=>{a.value=!0,r&&r.close(),r=null};return T.$on($.LOGOUT,H),T.$on($.SHOW_LOGIN,H),(L,j)=>{const ie=y("magic-login"),se=y("magic-header"),J=y("magic-main"),Ee=y("magic-status-bar"),xe=y("magic-notify");return v(),k("div",{class:"magic-editor",style:Ve(I),onContextmenu:j[2]||(j[2]=ye(()=>{},["prevent"])),ref_key:"root",ref:i},[gt(_(ie,{value:a.value,"onUpdate:value":j[0]||(j[0]=Xe=>a.value=Xe),error:o.value,"onUpdate:error":j[1]||(j[1]=Xe=>o.value=Xe)},null,8,["value","error"]),[[Mt,a.value]]),s.value?(v(),V(se,{key:0,themeStyle:I,header:h(l).header,title:h(l).title},null,8,["themeStyle","header","title"])):X("",!0),s.value?(v(),V(J,{key:1,ref_key:"componentMain",ref:n,onOnLoad:A},null,512)):X("",!0),s.value?(v(),V(Ee,{key:2,config:h(l)},null,8,["config"])):X("",!0),s.value?(v(),V(xe,{key:3})):X("",!0),lo],36)}}};var uo=Object.freeze(Object.defineProperty({__proto__:null,default:co},Symbol.toStringTag,{value:"Module"}));var q=(e,t)=>{const a=e.__vccOpts||e;for(const[n,i]of t)a[n]=i;return a};const po={props:{menus:Array,onDestory:Function,position:Object},data(){return{style:{left:this.position.x+"px",top:this.position.y+"px",element:U(null)}}},mounted(){document.addEventListener("click",this.onMouseup);const e=document.querySelector(".magic-editor").getBoundingClientRect(),t=e.x+e.width,a=e.y+e.height,n=this.$el.getBoundingClientRect();n.x+n.width>t&&(this.style.left=`${t-n.width}px`),n.y+n.height>a&&(this.style.top=`${a-n.height}px`)},unmounted(){document.removeEventListener("click",this.onMouseup)},methods:{onMouseup(){this.onDestory&&this.onDestory()}}},_o=["onClick"],ho={key:0,class:"magic-context-menu-icon"},fo={class:"magic-context-menu-icon right"},go={class:"magic-context-menu none-select"},mo=["onClick"],vo={key:0,class:"magic-context-menu-icon"};function bo(e,t,a,n,i,s){const o=y("magic-icon");return v(),k("ul",{class:"magic-context-menu none-select",style:Ve(i.style),ref:"element"},[(v(!0),k(te,null,fe(a.menus,(r,l)=>(v(),k("li",{key:l,class:ve({divided:r.divided}),onClick:ye(()=>{s.onMouseup(),r.onClick&&r.onClick()},["stop"])},[a.menus.some(u=>u.icon)?(v(),k("span",ho,[r.icon?(v(),V(o,{key:0,icon:r.icon,size:"12px"},null,8,["icon"])):X("",!0)])):X("",!0),R("label",null,F(r.label),1),r.children?(v(),k(te,{key:1},[R("span",fo,[_(o,{icon:"right",size:"12px"})]),R("ul",go,[(v(!0),k(te,null,fe(r.children,(u,d)=>(v(),k("li",{key:d,class:ve({divided:u.divided}),onClick:ye(()=>{s.onMouseup(),u.onClick&&u.onClick()},["stop"])},[r.children.some(g=>g.icon)?(v(),k("span",vo,[u.icon?(v(),V(o,{key:0,icon:u.icon,size:"12px"},null,8,["icon"])):X("",!0)])):X("",!0),R("label",null,F(u.label),1)],10,mo))),128))])],64)):X("",!0)],10,_o))),128))],4)}var Dn=q(po,[["render",bo],["__scopeId","data-v-75aac978"]]),Eo=Object.freeze(Object.defineProperty({__proto__:null,default:Dn},Symbol.toStringTag,{value:"Module"}));const yo={class:"magic-empty"},To={__name:"magic-empty",props:{text:{type:String,default:c("message.nodata")}},setup(e){return(t,a)=>(v(),k("div",yo,[R("p",null,F(e.text),1)]))}};var So=q(To,[["__scopeId","data-v-70308d5a"]]),xo=Object.freeze(Object.defineProperty({__proto__:null,default:So},Symbol.toStringTag,{value:"Module"}));const Oo={class:"icon"},Ro={__name:"magic-loading",props:{loading:Boolean,loadingText:{type:String,default:c("message.loading")},style:Object},setup(e){return(t,a)=>{const n=y("magic-icon");return e.loading?(v(),k("div",{key:0,class:"magic-loading",style:Ve(e.style)},[R("p",null,[R("span",Oo,[_(n,{icon:"refresh",size:"20px"})]),pe(" "+F(e.loadingText),1)])],4)):Et(t.$slots,"default",{key:1},void 0,!0)}}};var Ao=q(Ro,[["__scopeId","data-v-19c11c56"]]),Co=Object.freeze(Object.defineProperty({__proto__:null,default:Ao},Symbol.toStringTag,{value:"Module"}));const Io={props:{language:{type:String,required:!0},editorConfig:{type:Object,default:{}},value:Array},setup(){return{instance:null,instancePromise:null}},mounted(){this.instance=$e.createDiffEditor(this.$refs.editor,{...this.editorConfig,enableSplitViewResizing:!1,language:this.language,minimap:{enabled:!1},folding:!1,lineDecorationsWidth:20,wordWrap:"on",fixedOverflowWidgets:!1,fontFamily:D.EDITOR_FONT_FAMILY,fontSize:D.EDITOR_FONT_SIZE,fontLigatures:D.FONT_LIGATURES,renderWhitespace:"none",theme:D.THEME,readOnly:this.readonly===!0,value:this.value||"",automaticLayout:!0}),this.instance.setModel({original:$e.createModel(this.value[0],this.language),modified:$e.createModel(this.value[1],this.language)}),et(()=>this.language,()=>{nextTick(()=>this.instance.setModel({original:$e.createModel(this.value[0],this.language),modified:$e.createModel(this.value[1],this.language)}))})},methods:{getEditorDom(){return this.$refs.editor},getInstance(){return this.instance}},watch:{value(e){this.instance.setModel({original:$e.createModel(e[0],this.language),modified:$e.createModel(e[1],this.language)})}}},ko={class:"magic-monaco-editor",ref:"editor"};function Lo(e,t,a,n,i,s){return v(),k("div",ko,null,512)}var No=q(Io,[["render",Lo],["__scopeId","data-v-59a04eab"]]),wo=Object.freeze(Object.defineProperty({__proto__:null,default:No},Symbol.toStringTag,{value:"Module"}));const Do={props:{language:{type:String,required:!0},editorConfig:{type:Object,default:{}},value:String,decorations:Array,readonly:{type:Boolean,default:!1},supportBreakpoint:{type:Boolean,default:!1},matches:String},setup(){return{instance:null,instancePromise:null}},emits:["update:value","change","update:decorations"],mounted(){this.instance=$e.create(this.$refs.editor,{...this.editorConfig,language:this.language,minimap:{enabled:!1},folding:!0,lineDecorationsWidth:this.supportBreakpoint?35:void 0,wordWrap:"on",fontFamily:D.EDITOR_FONT_FAMILY,fontSize:D.EDITOR_FONT_SIZE,fontLigatures:D.FONT_LIGATURES,renderWhitespace:"none",theme:D.THEME,readOnly:this.readonly===!0,value:this.value||"",automaticLayout:!0}),et(()=>this.language,()=>{be(()=>this.instance.setModel($e.createModel(this.instance.getModel().getValue(),this.language)))}),this.instance.onDidChangeModelContent(e=>{this.$emit("update:value",this.instance.getValue()),this.$emit("change",e),this.doValidate()}),this.instance.addAction({id:"editor.action.triggerSuggest.extension",label:c("editor.triggerSuggest"),precondition:"!suggestWidgetVisible && !markersNavigationVisible && !parameterHintsVisible && !findWidgetVisible",run:()=>{this.instance.trigger(null,"editor.action.triggerSuggest",{})}}),Va.registerCommand("editor.action.appendHead",(e,t)=>{var a;((a=this.value)==null?void 0:a.indexOf(t))>-1||(this.instance.executeEdits("command",[{forceMoveMarkers:!0,text:t,range:new st(1,0,1,0)}]),this.instance.setScrollTop(this.instance.getScrollTop()-22))}),this.instance.addCommand(ct.Alt|ht.US_SLASH,()=>{let e=this.instance.getAction("editor.action.triggerParameterHints"),t=this.instance.getAction("editor.action.triggerSuggest.extension");e.run().then(()=>{setTimeout(()=>{t.isSupported()&&t.run()},0)})},"!findWidgetVisible && !inreferenceSearchEditor && !editorHasSelection"),this.initKeys(),this.initDecorations()},methods:{doValidate(){if(this.instance&&$e.setModelMarkers(this.instance.getModel(),"validate",[{}]),this.language==="magicscript")try{new ta(new yt(Zt(this.instance.getValue()))).parse()}catch(e){if(e.span){let t=e.span.getLine();$e.setModelMarkers(this.instance.getModel(),"validate",[{startLineNumber:t.lineNumber,endLineNumber:t.endLineNumber,startColumn:t.startCol,endColumn:t.endCol,message:e.message,severity:ai.Error}])}}},getEditorDom(){return this.$refs.editor},getScrollTop(){return this.instance&&this.instance.getScrollTop()},setScrollTop(e){this.instance&&this.instance.setScrollTop(e)},match(){this.matches&&be(()=>{let e=this.instance.getModel().findMatches(this.matches);e&&e.length>0&&this.instance.setSelections(e.map(({range:t})=>({positionColumn:t.endColumn,positionLineNumber:t.endLineNumber,selectionStartColumn:t.startColumn,selectionStartLineNumber:t.startLineNumber})))})},initKeys(){[["editor.action.triggerParameterHints",ct.Alt|ht.US_SLASH],["editor.action.triggerSuggest",ct.Alt|ht.US_SLASH],["toggleSuggestionDetails",ct.Alt|ht.US_SLASH,ni.deserialize("suggestWidgetVisible && textInputFocus")],["editor.action.formatDocument",ct.CtrlCmd|ct.Alt|ht.KEY_L],["editor.action.marker.nextInFiles",ct.CtrlCmd|ht.F8]].forEach(t=>{var s;let a=t[0];const{handler:n,when:i}=(s=Va.getCommand(a))!=null?s:{};if(n){let o=na._coreKeybindings.findIndex(r=>r.command===a);o>0&&na._coreKeybindings.splice(o,1),this.instance._standaloneKeybindingService.addDynamicKeybinding(a,t[1],n,i||t[2])}}),na._cachedMergedKeybindings=null},getInstance(){return this.instance},initDecorations(){this.instance.onMouseDown(e=>{if(!e.target.element.classList.contains("codicon")&&e.target.detail&&e.target.detail.offsetX&&e.target.detail.offsetX>=0&&e.target.detail.offsetX<=65){var t=e.target.position.lineNumber;if(this.instance.getModel().getLineContent(t).trim()==="")return;let n=this.instance.getLineDecorations(t).filter(i=>i.options.linesDecorationsClassName==="breakpoints");n&&n.length>0?this.instance.getModel().deltaDecorations([n[0].id],[]):this.instance.getModel().deltaDecorations([],[{range:new st(t,1,t,1),options:{isWholeLine:!0,linesDecorationsClassName:"breakpoints",className:"breakpoint-line"}}]),this.updateDecoration()}})},appendDecoration(e){const t=this.instance.deltaDecorations([],e);return this.updateDecoration(),t},removedDecorations(e){this.instance.deltaDecorations(e,[]),this.updateDecoration()},updateDecoration(){this.$emit("update:decorations",this.instance.getModel().getAllDecorations())}},watch:{value(e){e!==this.instance.getValue()&&(this.instance.setValue(e||""),this.match())},matches(){this.match()}}},Mo={class:"magic-monaco-editor",ref:"editor"};function Po(e,t,a,n,i,s){return v(),k("div",Mo,null,512)}var Uo=q(Do,[["render",Po],["__scopeId","data-v-9b3f02a8"]]),$o=Object.freeze(Object.defineProperty({__proto__:null,default:Uo},Symbol.toStringTag,{value:"Module"}));const Fo={props:{max:Number,min:Number,value:Number,direction:String,reverse:{type:Boolean,default:!1}},setup(e){return{style:U({[e.direction==="x"?"width":"height"]:(e.value||e.min)+"px"})}},mounted(){new ResizeObserver(this.updateCss).observe(this.$refs.resizer)},methods:{updateCss(){try{const e=this.$refs.resizer.parentElement;this.$refs.resizer.style.setProperty("--width",e.offsetWidth+"px"),this.$refs.resizer.style.setProperty("--height",e.offsetHeight+"px")}catch{}},mousedown(e){const t=this.direction==="x",a=t?e.clientX:e.clientY,n=e.target.parentElement.getBoundingClientRect();document.onmousemove=i=>{let s=t?n.width:n.height;t?this.reverse?s=a-i.clientX+n.width:s=i.clientX-a+n.width:this.reverse?s=i.clientY-a+n.height:s=a-i.clientY+n.height,s>=this.min&&s<=this.max&&(this.style[t?"width":"height"]=`${s}px`)},document.onmouseup=()=>{document.onmousemove=document.onmouseup=null},e.stopPropagation(),e.preventDefault()}}};function Bo(e,t,a,n,i,s){return v(),k("div",{class:ve(`magic-resizer-${this.direction}`),style:Ve(n.style)},[Et(e.$slots,"default",{},void 0,!0),R("div",{class:ve(["magic-resizer-event",{reverse:a.reverse}]),onMousedown:t[0]||(t[0]=(...o)=>s.mousedown&&s.mousedown(...o)),ref:"resizer"},null,34)],6)}var Ho=q(Fo,[["render",Bo],["__scopeId","data-v-032bc45e"]]),jo=Object.freeze(Object.defineProperty({__proto__:null,default:Ho},Symbol.toStringTag,{value:"Module"}));const Vo={class:"magic-navbar-item"},Go={__name:"magic-navbar-item",props:{title:String,style:Object,show:{type:Boolean,default:!0},to:HTMLElement},setup(e){return(t,a)=>(v(),k("div",Vo,[Et(t.$slots,"default",{},void 0,!0)]))}};var zo=q(Go,[["__scopeId","data-v-30388e35"]]),Yo=Object.freeze(Object.defineProperty({__proto__:null,default:zo},Symbol.toStringTag,{value:"Module"})),qo=`.magic-navbar{display:flex;background-color:var(--main-background-color);transition:.3s}.magic-navbar .magic-navbar-body{background-color:var(--navbar-body-background-color);overflow:auto}.magic-navbar .magic-navbar-header li:hover{background-color:var(--main-hover-background-color)}.magic-navbar .magic-navbar-header li.selected{background-color:var(--main-selected-background-color);color:var(--main-selected-color)}.magic-navbar .magic-navbar-header li.selected svg text{fill:var(--main-selected-color)}.magic-navbar .magic-navbar-header li svg text{letter-spacing:0px;font-size:10px}.magic-navbar__vertical.reverse{flex-direction:row-reverse}.magic-navbar__vertical .magic-navbar-header li{display:flex;flex-direction:column;align-items:center;overflow:hidden;padding:var(--magic-navbar-vertical-header-padding);margin:var(--magic-navbar-vertical-header-margin);cursor:pointer;border-bottom-color:var(--main-border-color);border-bottom-style:solid;border-bottom-width:var(--magic-navbar-vertical-header-border-width);border-radius:var(--magic-navbar-vertical-header-border-radius)}.magic-navbar__vertical .magic-navbar-header{width:var(--magic-navbar-vertical-width);height:100%;letter-spacing:2px;text-align:center;padding:0;border-right:1px solid var(--main-border-color)}.magic-navbar__vertical.reverse .magic-navbar-header{border-left:1px solid var(--main-border-color);border-right:none}.magic-navbar__vertical.reverse .magic-navbar-header li{display:flex;flex-direction:column-reverse}.magic-navbar__vertical .magic-navbar-header li{line-height:14px;word-break:break-all}.magic-navbar__vertical .magic-navbar-body{flex:1}.magic-navbar__vertical .magic-navbar-body{border-right:1px solid var(--navbar-body-border-color)}.magic-navbar__vertical.reverse .magic-navbar-body{border-left:1px solid var(--navbar-body-border-color);border-right:none}.magic-navbar__horizontal>ul{width:100%}.magic-navbar__horizontal>ul li{display:inline-flex;flex-direction:row-reverse;padding:0 8px;height:var(--magic-navbar-horizontal-height);line-height:var(--magic-navbar-horizontal-height);cursor:pointer;color:var(--main-color)}.magic-navbar__horizontal>ul li svg.magic-icon{height:100%;margin-right:4px}.magic-navbar__horizontal>ul{border-top:1px solid var(--main-border-color)}.magic-navbar.magic-navbar__vertical .magic-navbar-title{padding-bottom:4px;display:var(--magic-navbar-vertical-title-display)}.magic-navbar.magic-navbar__vertical>ul li svg.magic-icon{width:var(--magic-navbar-vertical-icon-size);height:var(--magic-navbar-vertical-icon-size)}.magic-navbar.magic-navbar__vertical.reverse .magic-navbar-title{padding-top:4px;padding-bottom:0;display:var(--magic-navbar-vertical-title-display)} +`,Ko=Object.freeze(Object.defineProperty({__proto__:null,default:qo},Symbol.toStringTag,{value:"Module"}));const Wo={"aria-hidden":"true",class:"magic-icon"},Xo=["xlink:href"],Jo={__name:"magic-icon",props:{prefix:{type:String,default:"magic-icon"},icon:String,size:String},setup(e){const t=e,a=_e(()=>t.icon&&t.icon.startsWith("#")?t.icon:`#${t.prefix}-${t.icon}`),n=_e(()=>t.icon&&t.icon.startsWith("#")?t.icon.substring(1):`${t.prefix}-${t.icon}`);return(i,s)=>(v(),k("svg",Wo,[R("use",{"xlink:href":h(a),class:ve(h(n))},null,10,Xo)]))}};var Ua=q(Jo,[["__scopeId","data-v-15383e92"]]),Qo=Object.freeze(Object.defineProperty({__proto__:null,default:Ua},Symbol.toStringTag,{value:"Module"}));var Zo={props:{direction:{type:String,default:""},reverse:{type:Boolean,default:!1},defaultSelect:{type:Number,default:0},allowClose:{type:Boolean,default:!0},tooltipDirection:{type:String,default:"right"},spliter:Boolean,value:Array,to:HTMLElement},setup(e,t){const a=U(e.defaultSelect);return{slots:_e(()=>t.slots.default()[0].children),navbars:_e(()=>t.slots.default()[0].children.flatMap(n=>n.props)),selectIndex:a}},methods:{select(e){this.selectIndex=e}},render(){const e=n=>{const i=parseInt(Math.random()*1e8),s=n.length*6;return le("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:22,height:s},[le("defs",le("path",{id:`path-text-${i}`,d:this.reverse?`M6,0 L6,${s}`:`M14,${s} L14,0`})),le("text",{fill:"var(--main-color)"},le("textPath",{"xlink:href":`#path-text-${i}`},n))])},t=n=>{if(this.spliter&&this.direction==="vertical"&&n.match(/\w/g)){const i=[];let s="",o=1,r;const l=n.split("");for(let u=0,d=l.length;u{const s=[le("div",{class:"magic-navbar-title"},[...t(n.title)])];n.icon&&s.push(le(Ua,{icon:n.icon}));const o=n.style||{};return n.show===!1&&(o.display="none"),le("li",{class:this.selectIndex===i?"selected":"","data-title":n.title,"data-tooltip-direction":this.tooltipDirection,style:o,onClick:()=>{this.selectIndex===i&&this.allowClose?this.selectIndex=-1:this.selectIndex=i}},s)}))];return this.slots.forEach((n,i)=>{const s=i!==this.selectIndex||n.props.show===!1?{display:"none"}:{};this.to?a.push(le(cn,{to:this.to},le("div",{class:"magic-navbar-body",style:s},n))):a.push(le("div",{class:"magic-navbar-body",style:s},n))}),le("div",{class:`magic-navbar magic-navbar__${this.direction}`+(this.reverse?" reverse":"")},a)}},er=Object.freeze(Object.defineProperty({__proto__:null,default:Zo},Symbol.toStringTag,{value:"Module"})),tr=`.magic-tab{width:100%;overflow:hidden;flex-wrap:nowrap;white-space:nowrap;transition:.3s}.magic-tab ul{overflow-x:auto}.magic-tab ul li{display:inline-block;cursor:pointer;padding:0 10px;height:24px;line-height:24px}.magic-tab ul li.selected,.magic-tab ul li:hover,.magic-tab.magic-script-tab ul li.selected:hover,.magic-tab ul li.draggable-target-item{background-color:var(--main-hover-background-color)}.magic-tab.magic-script-tab{border-bottom:1px solid var(--main-border-color);height:30px;position:absolute}.magic-tab.magic-script-tab ul li{height:30px;line-height:30px;border-bottom:3px solid transparent}.magic-tab.magic-script-tab ul li.selected{border-bottom-color:var(--tab-selected-border-color);background-color:var(--tab-selected-background-color)} +`,ar=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"}));var nr={props:{tabs:Array,className:String,value:Object,allowClose:{type:Boolean}},emits:["update:value","change","close","item-contextmenu","before-change"],setup(e){const t=U({}),a=U({});function n(o,r,l){switch(l){case"dragstart":t.value=o,r.stopPropagation();break;case"dragenter":a.value=o,r.stopPropagation();break;case"dragend":if(t.value!==a.value){const u=e.tabs.indexOf(t.value),d=e.tabs.indexOf(a.value);e.tabs.splice(u,1),e.tabs.splice(d,0,t.value)}a.value={},r.stopPropagation();break;case"dragover":t.value!==a.value&&r.preventDefault();break}}const i=U({});function s(o){let r=o.wheelDelta||o.detail;i.value.value.el.scrollLeft+=r>0?-100:100}return{selectIndex:U(0),draggableItem:t,draggableTargetItem:a,tabDraggable:n,scrollbar:i,scrollbarHandler:s,scrollId:"",scrollItem:U(null)}},mounted(){be(()=>{this.scrollbar.value.el.addEventListener("DOMMouseScroll",this.scrollbarHandler,!1),this.scrollbar.value.el.addEventListener("mousewheel",this.scrollbarHandler,!1)})},methods:{scrollIntoView(e){this.scrollId="s"+new Date().getTime()+parseInt(Math.random()*1e7),this.scrollItem=e,be(()=>{const t=document.querySelector("#"+this.scrollId);t&&t.scrollIntoView(!0)})}},destroyed(){be(()=>{this.scrollbar.value.el.removeEventListener("DOMMouseScroll",this.scrollbarHandler),this.scrollbar.value.el.removeEventListener("mousewheel",this.scrollbarHandler)})},render(){const e=this.tabs&&le("ul",this.tabs.map((t,a)=>{const n=[this.$slots.default({tab:t})];return this.allowClose&&n.push(le(Ua,{icon:"close",size:"12px",style:{marginLeft:"5px"},onClick:i=>{this.$emit("close",t),i.stopPropagation(),i.preventDefault()}})),le("li",{class:[this.value===t?"selected":"",t===this.draggableTargetItem?"draggable-target-item":""],id:this.scrollItem===t||this.scrollItem===t.id?this.scrollId:void 0,onClick:i=>{this.value!==t&&(this.$emit("before-change",this.value),this.$emit("update:value",t),this.$emit("change",t)),i.stopPropagation(),i.preventDefault()},onMousedown:i=>{i.which===2&&this.allowClose&&this.$emit("close",t)},onContextmenu:i=>{this.$emit("item-contextmenu",i,t,a),i.preventDefault()},draggable:!0,onDragenter:i=>this.tabDraggable(t,i,"dragenter"),onDragstart:i=>this.tabDraggable(t,i,"dragstart"),onDragend:i=>this.tabDraggable(t,i,"dragend"),onDragover:i=>this.tabDraggable(t,i,"dragover")},n)}));return this.scrollbar.value=e,le("div",{class:"magic-tab none-select"+(this.className?" "+this.className:"")},e)}},ir=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"}));const sr={class:"magic-table-row"},Mn={__name:"magic-table-column",props:{title:String,row:Object,flex:String,width:String,align:String},setup(e){return(t,a)=>(v(),k("div",sr,[Et(t.$slots,"default",{row:e.row})]))}};var or=Object.freeze(Object.defineProperty({__proto__:null,default:Mn},Symbol.toStringTag,{value:"Module"})),rr=`.magic-table{display:flex;flex-direction:column;box-sizing:border-box}.magic-table .magic-table-body{flex:1;overflow:auto}.magic-table .magic-table-header,.magic-table .magic-table-body .magic-table-row{display:flex;height:var(--magic-table-row-height);line-height:var(--magic-table-row-height);border-bottom:1px solid var(--main-border-color)}.magic-table .magic-table-body .magic-table-row:hover{background-color:var(--main-hover-background-color)}.magic-table .magic-table-column{flex:1;display:inline-flex}.magic-table .magic-table-column span:last-child{flex:1;overflow:hidden;text-overflow:ellipsis;width:0px;white-space:pre}.magic-table .magic-table-column .magic-select{width:100%}.magic-table__border .magic-table-body .magic-table-row{border-bottom:1px solid var(--table-border-color)}.magic-table__border .magic-table-column:not(:last-child){border-right:1px solid var(--table-border-color)} +`,lr=Object.freeze(Object.defineProperty({__proto__:null,default:rr},Symbol.toStringTag,{value:"Module"}));var cr={props:{data:{type:Array,default:[]},width:String,border:{type:Boolean,default:!1},align:{type:String,default:"center"}},emits:["clickRow","contextmenu","loadNext"],render(){const e=this.$slots.default(),t=a=>{a=a||{};let n=[];if(a.width){let i=`width: ${a.width}`;!a.width.endsWith("%")&&!isNaN(a.width)&&(i+="px"),n.push(i),n.push("flex:none")}else a.flex&&n.push(`flex: ${a.flex}`);return(a.align||this.align)&&n.push(`justify-content: ${a.align||this.align};text-align: ${a.align||this.align}`),n.join(";")};return le("div",{class:"magic-table"+(this.border?" magic-table__border":"")},[le("div",{class:"magic-table-header none-select"},e.map(a=>le("div",{class:"magic-table-column",title:a.props.title,style:t(a.props)},le("span",a.props.title)))),le("div",{class:"magic-table-body",onScroll:a=>{a.target.scrollTop+a.target.offsetHeight+40>=a.target.scrollHeight&&this.$emit("loadNext")}},this.data.map((a,n)=>le(Mn,{row:a,onClick:()=>{this.$emit("clickRow",n)}},{default:()=>e.map(i=>le("div",{class:"magic-table-column",onContextmenu:s=>{this.$emit("contextmenu",s,a),s.stopPropagation(),s.preventDefault()},style:t(i.props)},i.children.default({row:a})))})))])}},ur=Object.freeze(Object.defineProperty({__proto__:null,default:cr},Symbol.toStringTag,{value:"Module"})),dr=`.magic-tree{position:relative;overflow:auto}.magic-tree>ul{position:absolute;top:0;left:0}.magic-tree .magic-tree-item{height:20px;line-height:20px;transition:.3s;word-break:break-all;white-space:nowrap}.magic-tree .magic-tree-item:hover,.magic-tree .magic-tree-item.selected,.magic-tree .magic-tree-item.draggable-target-item{background-color:var(--tree-hover-background-color)}.magic-tree .magic-tree-item .magic-icon{fill:var(--tree-icon-color);margin-right:2px}.magic-tree ul{max-height:99999px;min-width:100%}.magic-tree li{white-space:nowrap;word-break:break-all}.magic-tree .hide{opacity:0;max-height:0;position:relative}.magic-tree svg:not(.root) .magic-icon-datasource{fill:#089910} +`,pr=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"}));var _r={props:{data:Array,sort:Boolean,descending:Boolean,filter:String,filterText:Function,selected:Object,draggable:{type:Boolean,default:!1},onMove:{type:Function,defeault:()=>new Promise(e=>e(!0))}},emits:["drag","contextmenu","onMove","itemClick"],setup(e,t){const a=t.emit,n=We({item:{},itemParent:{},target:{},targetParent:{}});function i(s,o,r,l){function u(){return!(n.item===n.target||n.itemParent===n.target||!n.target.folder&&n.itemParent===n.targetParent)}switch(l){case"dragstart":n.item=o,n.itemParent=s,r.stopPropagation();break;case"dragenter":n.target=o,n.targetParent=s,r.stopPropagation();break;case"dragover":u()&&r.preventDefault();break;case"dragend":if(!u())break;e.onMove(o,n.target||n.targetParent).then(d=>{if(d){const g=n.itemParent||{children:e.data};g.children.splice(g.children.indexOf(o),1),n.target.folder?(n.target.children=n.target.children||[],n.target.children.push(n.item)):(n.targetParent.children=n.targetParent.children||[],n.targetParent.children.push(n.item)),e.sort&&Ct(n.target.folder?n.target.children:n.targetParent.children,e.descending,"name"),n.target={},n.targetParent={}}}),r.stopPropagation();break}a("drag",l,n,r)}return e.sort&&(Ct(e.data,e.descending,"name","children"),et(()=>e.data,s=>{Ct(e.data,e.descending,"name","children")}),et(()=>e.descending,s=>{Ct(e.data,e.descending,"name","children")})),{draggableItem:n,itemDraggable:i}},data(){return{scrollId:"",scrollItem:U(null)}},methods:{scrollIntoView(e){this.scrollId="s"+new Date().getTime()+parseInt(Math.random()*1e7),this.scrollItem=e;const t=a=>{let n=!1;for(const i in a){const s=a[i];if(n=s===e){s.opened!==void 0&&(s.opened=!0);break}else if(s.children&&s.children.length>0&&(n=t(s.children))){s.opened=!0;break}}return n};t(this.data)&&be(()=>{const a=document.querySelector("#"+this.scrollId);a&&a.scrollIntoView(!0)})}},render(){const e=a=>this.filter?this.filterText(Be(a)).indexOf(this.filter)>-1||a.children&&a.children.some(n=>e(n)):!0,t=(a,n,i)=>{const s=i>0?{paddingLeft:`${i*17}px`}:{};return e(n)&&le("li",{onDblclick:o=>{n.folder&&(n.opened=!n.opened),o.stopPropagation(),o.preventDefault()},onClick:o=>{this.$emit("itemClick",n),o.stopPropagation(),o.preventDefault()},onContextmenu:o=>{this.$emit("contextmenu",n,o),o.stopPropagation(),o.preventDefault()},draggable:this.draggable,onDragenter:o=>this.itemDraggable(a,n,o,"dragenter"),onDragstart:o=>this.itemDraggable(a,n,o,"dragstart"),onDragend:o=>this.itemDraggable(a,n,o,"dragend"),onDragover:o=>this.itemDraggable(a,n,o,"dragover")},[le("div",{class:["magic-tree-item",n===this.draggableItem.target?"draggable-target-item":"",n===this.selected?"selected":""],style:s,id:this.scrollItem===n||this.scrollItem===n.id?this.scrollId:void 0},n.folder?this.$slots.folder({item:n}):this.$slots.file({item:n})),n.folder&&n.opened&&le("ul",{class:n.opened&&"opened"||"hide"},n.children&&n.children.map(o=>t(n,o,i+1)))])};return le("div",{class:"magic-tree none-select"},le("ul",{},this.data&&this.data.map(a=>t(null,a,0))))}},hr=Object.freeze(Object.defineProperty({__proto__:null,default:_r},Symbol.toStringTag,{value:"Module"}));const fr=["onMousedown"],gr={__name:"magic-dialog",props:{value:{type:Boolean,default:!0},className:String,showClose:{type:Boolean,default:!0},shade:{type:Boolean,default:!0},padding:{type:String,default:"5px 10px"},height:{type:String,default:"auto"},width:{type:String,default:"auto"},moveable:{type:Boolean,default:!0},overflow:{type:String,default:"auto"},top:String,maxHeight:String,maxWidth:String,contentHeight:String,title:String,content:String,onClose:Function},emits:["update:value","onClose"],setup(e,{expose:t,emit:a}){const n=e,i=U(n.top||"auto"),s=U("auto"),o=U("relative"),r=U(null);function l(){a("update:value",!1)}const u=()=>{a("close"),typeof n.onClose=="function"&&n.onClose(),l()};let d,g=!1,f,E;function m(A){n.moveable&&(d=A,f=A.target.parentNode.getBoundingClientRect(),E=document.getElementsByClassName("magic-editor")[0].getBoundingClientRect(),g=!0)}function N(A){if(n.moveable&&g){let M=Math.min(Math.max(f.top+(A.pageY-d.pageY),E.y),E.y+E.height-f.height),I=Math.min(Math.max(f.left+(A.pageX-d.pageX),E.x),E.x+E.width-f.width);i.value=M+"px",s.value=I+"px",o.value="absolute"}}let C=!1;const x=()=>{!C&&r.value&&(o.value="absolute",s.value=r.value.getBoundingClientRect().x+"px"),C=!0};n.top&&Vn(x);const b=A=>{n.showClose&&A.keyCode===27&&u()};function S(A){g=!1}return t({close:u}),(A,M)=>{const I=y("magic-icon");return e.value?(v(),V(cn,{key:0,to:".magic-editor"},[R("div",{class:ve(["magic-dialog",(e.shade?"magic-dialog__shade":"")+(e.className?" "+e.className:"")]),tabindex:"1",onMousemove:N,onMouseup:S,onKeydown:b},[R("div",{class:"magic-dialog-main",style:Ve({position:o.value,top:i.value,left:s.value,width:e.width,height:e.height,"max-width":e.maxWidth}),ref_key:"dialog",ref:r},[R("div",{class:ve(["magic-dialog-header none-select",{moveable:e.moveable}]),onMousedown:m},[pe(F(e.title)+" ",1),e.showClose?(v(),k("span",{key:0,onMousedown:ye(u,["stop"])},[_(I,{icon:"close"})],40,fr)):X("",!0)],34),R("div",{class:"magic-dialog-body",style:Ve({padding:e.padding,"max-height":e.maxHeight,height:e.contentHeight,overflow:e.overflow})},[e.content?(v(),k(te,{key:0},[pe(F(e.content),1)],64)):Et(A.$slots,"default",{key:1},void 0,!0)],4)],4)],34)])):X("",!0)}}};var mr=q(gr,[["__scopeId","data-v-3e8f0d71"]]),vr=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"}));const br={class:"magic-notify"},Er=["onClick"],yr=["innerHTML"],Tr=["innerHTML"],Sr={__name:"magic-notify",setup(e){const t={error:'',warning:'',info:''},a=We([]),n=s=>{const o=a.findIndex(r=>s.id===r.id);return o>-1&&a.splice(o,1),!0},i=s=>{s.icon=t[s.icon]||t.info,s.id=s.id||parseInt(Math.random()*1e7),n(s),a.push(s),s.duration&&setTimeout(()=>n(s),parseInt(s.duration))};return T.$on($.NOTIFY,i),(s,o)=>{const r=y("magic-icon"),l=y("magic-button"),u=y("magic-button-group");return v(),k("div",br,[(v(!0),k(te,null,fe(a,(d,g)=>(v(),k("div",{class:"magic-notify-item",key:g},[R("div",{class:"close",onClick:f=>n(d)},[_(r,{icon:"close"})],8,Er),R("h3",null,[(v(),k("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",innerHTML:d.icon},null,8,yr)),pe(F(d.title),1)]),R("p",{innerHTML:d.content},null,8,Tr),d.buttons?(v(),V(u,{key:0},{default:w(()=>[(v(!0),k(te,null,fe(d.buttons,(f,E)=>(v(),V(l,{key:E,value:f.title,type:"link",onClick:()=>n(d)&&f.onClick()},null,8,["value","onClick"]))),128))]),_:2},1024)):X("",!0)]))),128))])}}};var xr=q(Sr,[["__scopeId","data-v-4a37ceea"]]),Or=Object.freeze(Object.defineProperty({__proto__:null,default:xr},Symbol.toStringTag,{value:"Module"}));const Rr={__name:"magic-button-group",props:{align:{type:String,default:"left"}},setup(e){return(t,a)=>(v(),k("div",{class:ve(["magic-button-group",e.align])},[Et(t.$slots,"default",{},void 0,!0)],2))}};var Ar=q(Rr,[["__scopeId","data-v-70c60ab6"]]),Cr=Object.freeze(Object.defineProperty({__proto__:null,default:Ar},Symbol.toStringTag,{value:"Module"}));const Ir={__name:"magic-button",props:{value:String,type:String},setup(e){return(t,a)=>(v(),k("button",{onClick:a[0]||(a[0]=ye(n=>t.$emit("onClick"),["stop"])),class:ve(["magic-button",e.type]),type:"button"},F(e.value),3))}};var kr=q(Ir,[["__scopeId","data-v-d216a404"]]),Lr=Object.freeze(Object.defineProperty({__proto__:null,default:kr},Symbol.toStringTag,{value:"Module"}));const Nr=["checked"],wr={__name:"magic-checkbox",props:{value:{type:[Number,Boolean],default:()=>!1},checkedHalf:{type:Boolean,default:!1}},setup(e){const t=new Date().getTime()+""+Math.floor(Math.random()*1e3);return(a,n)=>(v(),k("div",{class:"magic-checkbox",onClick:n[1]||(n[1]=ye(i=>a.$emit("click",i),["stop"]))},[R("input",{id:t,ref:"checkbox",type:"checkbox",onChange:n[0]||(n[0]=()=>{a.$emit("update:value",a.$refs.checkbox.checked),a.$emit("change",a.$refs.checkbox.checked)}),checked:e.value},null,40,Nr),R("label",{for:t,class:ve({checkedHalf:e.checkedHalf&&e.value})},null,2)]))}};var Dr=q(wr,[["__scopeId","data-v-61c815ba"]]),Mr=Object.freeze(Object.defineProperty({__proto__:null,default:Dr},Symbol.toStringTag,{value:"Module"}));const Pr={class:"magic-file"},Ur=["accept","multiple"],$r={__name:"magic-file",props:{value:[Object,String],placeholder:{type:String,default:c("message.chooseFile")},accept:String,multiple:{type:Boolean,default:!1},border:{type:Boolean,default:!0}},emits:["update:value"],setup(e,{emit:t}){const a=e,n=U(null),i=U(null),s=()=>{n.value.files[0]&&(i.value=Array.from(n.value.files).map(o=>o.name).join(",")),t("update:value",a.multiple?n.value.files:n.value.files[0])};return(o,r)=>{const l=y("magic-input"),u=y("magic-icon");return v(),k("div",Pr,[R("input",{type:"file",style:{display:"none"},ref_key:"file",ref:n,onChange:s,accept:e.accept,multiple:e.multiple},null,40,Ur),_(l,{readonly:!0,style:{width:"100%"},placeholder:e.placeholder,onClick:()=>o.$refs.file.click(),value:i.value,border:e.border},null,8,["placeholder","onClick","value","border"]),_(u,{icon:"upload"})])}}};var Fr=q($r,[["__scopeId","data-v-a16f8c8a"]]),Br=Object.freeze(Object.defineProperty({__proto__:null,default:Fr},Symbol.toStringTag,{value:"Module"}));const Hr=["value","placeholder","readonly","type","autocomplete"],jr={__name:"magic-input",props:{value:[String,Number,Object],placeholder:String,defaultValue:[String,Number,Object],readonly:{type:Boolean,default:!1},type:{type:String,default:"text"},width:{type:String,default:"100%"},border:{type:Boolean,default:!0},onEnter:{type:Function,default:()=>{}}},emits:["update:value"],setup(e,{emit:t}){const a=e,n=Gn(()=>a.type==="password"?"new-password":null);!a.value&&a.defaultValue&&t("update:value",a.defaultValue);const i={width:a.width};return(s,o)=>(v(),k("input",{class:ve(["magic-input",{"magic-input__border":e.border}]),value:e.value,placeholder:e.placeholder,readonly:e.readonly,style:i,type:e.type,onInput:o[0]||(o[0]=r=>s.$emit("update:value",r.target.value)),autocomplete:h(n),onKeypress:o[1]||(o[1]=zn(ye((...r)=>e.onEnter&&e.onEnter(...r),["stop"]),["enter"]))},null,42,Hr))}};var Vr=q(jr,[["__scopeId","data-v-15b9b158"]]),Gr=Object.freeze(Object.defineProperty({__proto__:null,default:Vr},Symbol.toStringTag,{value:"Module"}));const zr={key:0},Yr=["placeholder"],qr=["onClick"],Kr={__name:"magic-select",props:{value:[Object,String,Number],options:Array,defaultSelect:[Object,String,Number],width:String,border:{type:Boolean,default:!0},placeholder:String,inputable:{type:Boolean,default:!1}},emits:["update:value","select"],setup(e,{emit:t}){const a=e;document.body.addEventListener("click",()=>i.value=!1);const n=U("-2px"),i=U(!1),s=U("auto"),o=U("0px"),r=_e({get(){return a.value},set(E){t("update:value",E)}}),l=_e(()=>{const E=a.options.find(m=>m.value===a.value)||a.options.find(m=>m.value===a.defaultSelect);return E&&E.text||""}),u=E=>{t("update:value",E),t("select",E),i.value=!1},d=oe("ELEMENT_ROOT"),g=(E,m)=>m+E.scrollTop>0?E.scrollTop:E.parentElement?g(E.parentElement,m+E.scrollTop):E.scrollTop,f=(E,m)=>{n.value=-g(E,0)-1+"px",i.value=!0,be(()=>{o.value=-(window.pageXOffset+1)+"px",s.value=E.clientWidth+"px";let N=m.offsetHeight;m.offsetTop+N+20>d.value.offsetTop+d.value.offsetHeight&&(n.value=-(N+E.offsetHeight)+"px")})};return(E,m)=>{const N=y("magic-icon");return v(),k("div",{class:ve([{inputable:e.inputable,border:e.border},"magic-select not-select"]),style:Ve({width:e.width}),onClick:m[2]||(m[2]=ye(C=>f(E.$refs.container,E.$refs.selectList),["stop"])),ref:"container"},[e.inputable?X("",!0):(v(),k("span",zr,F(h(l)),1)),e.inputable?gt((v(),k("input",{key:1,ref:"input","onUpdate:modelValue":m[0]||(m[0]=C=>un(r)?r.value=C:null),autocomplete:"off",type:"text",onInput:m[1]||(m[1]=C=>u(C.target.value)),placeholder:e.placeholder},null,40,Yr)),[[Yn,h(r)]]):X("",!0),gt(R("ul",{style:Ve({width:s.value,marginTop:n.value,marginLeft:o.value}),ref:"selectList"},[(v(!0),k(te,null,fe(e.options,C=>(v(),k("li",{key:C.value,onClick:ye(x=>u(C.value),["stop"])},F(C.text),9,qr))),128))],4),[[Mt,i.value]]),_(N,{icon:"arrow-bottom"})],6)}}};var Wr=q(Kr,[["__scopeId","data-v-9b6dc9a6"]]),Xr=Object.freeze(Object.defineProperty({__proto__:null,default:Wr},Symbol.toStringTag,{value:"Module"}));const Jr=["placeholder","value"],Qr={__name:"magic-textarea",props:{value:String,placeholder:String},setup(e){return(t,a)=>(v(),k("textarea",{class:"magic-textarea",placeholder:e.placeholder,value:e.value,onInput:a[0]||(a[0]=n=>t.$emit("update:value",n.target.value))},null,40,Jr))}};var Zr=q(Qr,[["__scopeId","data-v-ca6693f6"]]),el=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"}));const tl={__name:"magic-avatar-group",props:{users:Array,max:Number,size:{type:Number,default:22}},setup(e){const t=e,a=_e(()=>({height:t.size+"px",lineHeight:t.size+"px"})),n=_e(()=>t.users.slice(0,t.max||t.users.length));return(i,s)=>{const o=y("magic-avatar");return t.users&&t.users.length>0?(v(),k("div",{key:0,class:"magic-avatar-group",style:Ve(h(a))},[(v(!0),k(te,null,fe(h(n),(r,l)=>(v(),V(o,{key:l,user:r,size:e.size},null,8,["user","size"]))),128)),t.users.length>h(n).length?(v(),V(o,{key:0,text:`${e.max}+`,size:e.size},null,8,["text","size"])):X("",!0)],4)):X("",!0)}}};var al=q(tl,[["__scopeId","data-v-511f7f80"]]),nl=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"}));const il=["title"],sl={__name:"magic-avatar",props:{user:Object,text:String,size:{type:Number,default:22}},setup(e){const t=e,a=["#1abc9c","#2ecc71","#3498db","#9b59b6","#16a085","#27ae60","#2980b9","#8e44ad","#f1c40f","#e67e22","#e74c3c","#eca0f1","#95a5a6","#f39c12","#d35400","#c0392b","#bdc3c7","#7f8c8d"],n=_e(()=>({width:t.size+"px",height:t.size+"px",lineHeight:t.size+"px",borderRadius:t.size/2+"px",backgroundColor:t.text&&"#bdc3c7"||a[Ki(`${t.user.cid}`)%a.length]})),i=_e(()=>t.text||t.user.username.substring(0,1)),s=_e(()=>t.user?`${c("message.username")}\uFF1A${t.user.username} +IP\uFF1A${t.user.ip||"unknown"}`:void 0);return(o,r)=>(v(),k("div",{class:"magic-avatar",style:Ve(h(n)),title:h(s)},F(h(i)),13,il))}};var ol=q(sl,[["__scopeId","data-v-73f02f44"]]),rl=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"}));const ll=["width"],cl=["x","fill"],ul={__name:"magic-text-icon",props:{icon:String|Array},setup(e){const t=e,a={GET:"#0cbb52",POST:"#FFB400",DELETE:["DEL","#EB2013"],PUT:"#097BED",function:["Fn","#9012FE"]},n=_e(()=>{let i=t.icon,s=Array.isArray(i);s||(i=a[t.icon],s=i!==void 0&&Array.isArray(i));const o=s?i[0]:t.icon,r=o.length*9,l=s?i[1]:i||"var(--main-icon-color)";return{width:r,color:l,text:o}});return(i,s)=>(v(),k("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:h(n).width,height:"12","font-size":"10","font-weight":"bolder","font-family":"inherit"},[R("text",{x:h(n).width/2,y:"8",fill:h(n).color,style:{"dominant-baseline":"middle","text-anchor":"middle"}},F(h(n).text),9,cl)],8,ll))}};var dl=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"}));const pl={class:"magic-api-body"},_l={__name:"magic-api-body",props:{opened:Object},setup(e){const t=U(ee("magic-api-request-body")),a=[{title:"Json",selected:!0,selectable:!0,icon:"json",onSelect:()=>t.value=ee("magic-api-request-body")},{title:c("message.view"),selectable:!0,icon:"structure",onSelect:()=>t.value=ee("magic-api-request-structure")}];return(n,i)=>{const s=y("magic-panel-toolbar");return v(),k("div",pl,[_(s,{toolbars:a}),R("div",null,[(v(),V(ee(t.value)))])])}}};var hl=q(_l,[["__scopeId","data-v-25300c90"]]),fl=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"}));const gl={__name:"magic-api-description",setup(e){const t=oe("info");return(a,n)=>{const i=y("magic-textarea");return v(),V(i,{value:h(t).description,"onUpdate:value":n[0]||(n[0]=s=>h(t).description=s)},null,8,["value"])}}};var ml=Object.freeze(Object.defineProperty({__proto__:null,default:gl},Symbol.toStringTag,{value:"Module"}));const vl={class:"magic-api-group"},bl={__name:"magic-api-group",setup(e){const t=oe("info"),a=[{title:c("api.navbars.path"),component:ee("magic-api-path")},{title:c("api.navbars.groupOption"),component:ee("magic-api-option")}],n=()=>{const i=t.value;Y.sendJson("/resource/folder/save",{id:i.id,name:i.name,parentId:i.parentId,type:i.type,path:i.path,paths:i.paths,options:i.options})};return(i,s)=>{const o=y("magic-input"),r=y("magic-button"),l=y("magic-navbar-item"),u=y("magic-navbar");return v(),k(te,null,[R("div",vl,[R("form",null,[R("label",null,F(h(c)("resource.form.groupName")),1),_(o,{value:h(t).name,"onUpdate:value":s[0]||(s[0]=d=>h(t).name=d),placeholder:h(c)("resource.form.placeholder.name",h(c)("api.name")),width:"250px"},null,8,["value","placeholder"]),R("label",null,F(h(c)("resource.form.groupPath")),1),_(o,{value:h(t).path,"onUpdate:value":s[1]||(s[1]=d=>h(t).path=d),placeholder:h(c)("resource.form.placeholder.path",h(c)("api.name")),width:"auto",style:{flex:"1"}},null,8,["value","placeholder"]),_(r,{value:h(c)("message.save"),onOnClick:n},null,8,["value"])])]),_(u,{direction:"horizontal",ref:"navbar",style:{flex:"1"},"allow-close":!1},{default:w(()=>[(v(),k(te,null,fe(a,(d,g)=>_(l,mt({key:g},d),{default:w(()=>[(v(),V(ee(d.component)))]),_:2},1040)),64))]),_:1},512)],64)}}};var El=q(bl,[["__scopeId","data-v-07a9bc9f"]]),yl=Object.freeze(Object.defineProperty({__proto__:null,default:El},Symbol.toStringTag,{value:"Module"}));const Tl={class:"magic-panel-api"},Sl={__name:"magic-api-header",setup(e){const t=oe("info"),a=U(-1);return(n,i)=>{const s=y("magic-panel-common-toolbar"),o=y("magic-checkbox"),r=y("magic-table-column"),l=y("magic-input"),u=y("magic-select"),d=y("magic-table");return v(),k("div",Tl,[_(s,{index:a.value,"onUpdate:index":i[0]||(i[0]=g=>a.value=g),value:h(t).headers},null,8,["index","value"]),_(d,{data:h(t).headers,border:"",onClickRow:i[1]||(i[1]=g=>a.value=g),align:"center"},{default:w(()=>[_(r,{title:h(c)("message.required"),width:"65"},{default:w(({row:g})=>[_(o,{value:g.required,"onUpdate:value":f=>g.required=f},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:"Key"},{default:w(({row:g})=>[_(l,{value:g.name,"onUpdate:value":f=>g.name=f,border:!1},null,8,["value","onUpdate:value"])]),_:1}),_(r,{title:"Value"},{default:w(({row:g})=>[_(l,{value:g.value,"onUpdate:value":f=>g.value=f,border:!1},null,8,["value","onUpdate:value"])]),_:1}),_(r,{title:h(c)("message.parameterType"),width:"135"},{default:w(({row:g})=>[_(u,{options:n.$REQUEST_SIMPLE_TYPES,value:g.dataType,"onUpdate:value":f=>g.dataType=f,"default-select":n.$DEFAULT_REQUEST_SIMPLE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1},8,["title"]),_(r,{title:h(c)("message.defaultValue")},{default:w(({row:g})=>[_(l,{value:g.defaultValue,"onUpdate:value":f=>g.defaultValue=f,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("api.validateType"),width:"115"},{default:w(({row:g})=>[_(u,{options:n.$VALIDATE_TYPES,value:g.validateType,"onUpdate:value":f=>g.validateType=f,"default-select":n.$DEFAULT_VALIDATE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1},8,["title"]),_(r,{title:h(c)("api.expression"),width:"220"},{default:w(({row:g})=>[_(l,{value:g.expression,"onUpdate:value":f=>g.expression=f,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("api.validate"),width:"165"},{default:w(({row:g})=>[_(l,{value:g.error,"onUpdate:value":f=>g.error=f,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("message.description"),flex:"2"},{default:w(({row:g})=>[_(l,{value:g.description,"onUpdate:value":f=>g.description=f,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"])]),_:1},8,["data"])])}}};var xl=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"}));const Ol={class:"magic-api-info"},Rl={__name:"magic-api-info",setup(e){const t=oe("info"),a=[{title:c("api.navbars.parameter"),component:ee("magic-api-parameter")},{title:c("api.navbars.header"),component:ee("magic-api-header")},{title:c("api.navbars.path"),component:ee("magic-api-path")},{title:c("api.navbars.body"),component:ee("magic-api-body")},{title:c("api.navbars.option"),component:ee("magic-api-option")},{title:c("api.navbars.description"),component:ee("magic-api-description")}];return(n,i)=>{const s=y("magic-select"),o=y("magic-input"),r=y("magic-navbar-item"),l=y("magic-navbar");return v(),k(te,null,[R("div",Ol,[R("form",null,[R("label",null,F(h(c)("api.form.method")),1),_(s,{width:"100px",options:n.$REQUEST_METHODS,"default-select":n.$DEFAULT_REQUEST_METHOD,value:h(t).method,"onUpdate:value":i[0]||(i[0]=u=>h(t).method=u)},null,8,["options","default-select","value"]),R("label",null,F(h(c)("api.form.name")),1),_(o,{value:h(t).name,"onUpdate:value":i[1]||(i[1]=u=>h(t).name=u),placeholder:h(c)("api.form.placeholder.name"),width:"200px"},null,8,["value","placeholder"]),R("label",null,F(h(c)("api.form.path")),1),_(o,{value:h(t).path,"onUpdate:value":i[2]||(i[2]=u=>h(t).path=u),placeholder:h(c)("api.form.placeholder.path"),width:"auto",style:{flex:"1"}},null,8,["value","placeholder"])])]),_(l,{direction:"horizontal",ref:"navbar",style:{flex:"1"},"allow-close":!1,"tooltip-direction":"bottom"},{default:w(()=>[(v(),k(te,null,fe(a,(u,d)=>_(r,mt({key:d},u),{default:w(()=>[(v(),V(ee(u.component)))]),_:2},1040)),64))]),_:1},512)],64)}}};var Al=q(Rl,[["__scopeId","data-v-31699d76"]]),Cl=Object.freeze(Object.defineProperty({__proto__:null,default:Al},Symbol.toStringTag,{value:"Module"}));const Il={class:"magic-panel-api"},kl={__name:"magic-api-option",setup(e){const t=oe("info"),a=oe("options")||[],n=_e(()=>a.map(o=>({text:o[0],value:o[0],description:o[1],defaultValue:o[2]}))),i=U(-1),s=(o,r)=>{const l=a.find(u=>u[0]===o);l&&(r.description=l[1]||"",r.value=l[2]||"")};return(o,r)=>{const l=y("magic-panel-common-toolbar"),u=y("magic-select"),d=y("magic-table-column"),g=y("magic-input"),f=y("magic-table");return v(),k("div",Il,[_(l,{index:i.value,"onUpdate:index":r[0]||(r[0]=E=>i.value=E),value:h(t).options},null,8,["index","value"]),_(f,{data:h(t).options,border:"",onClickRow:r[1]||(r[1]=E=>i.value=E)},{default:w(()=>[_(d,{title:"Key",width:"20%"},{default:w(({row:E})=>[_(u,{options:h(n),value:E.name,"onUpdate:value":m=>E.name=m,"default-select":o.$DEFAULT_REQUEST_SIMPLE_TYPE,border:!1,inputable:"",onSelect:m=>s(m,E)},null,8,["options","value","onUpdate:value","default-select","onSelect"])]),_:1}),_(d,{title:"Value",width:"60%"},{default:w(({row:E})=>[_(g,{value:E.value,"onUpdate:value":m=>E.value=m,border:!1},null,8,["value","onUpdate:value"])]),_:1}),_(d,{title:h(c)("message.description"),width:"20%"},{default:w(({row:E})=>[_(g,{value:E.description,"onUpdate:value":m=>E.description=m,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"])]),_:1},8,["data"])])}}};var Ll=Object.freeze(Object.defineProperty({__proto__:null,default:kl},Symbol.toStringTag,{value:"Module"}));const Nl={class:"magic-panel-api"},wl={__name:"magic-api-parameter",setup(e){const t=U(-1),a=oe("info");return(n,i)=>{const s=y("magic-panel-common-toolbar"),o=y("magic-checkbox"),r=y("magic-table-column"),l=y("magic-input"),u=y("magic-file"),d=y("magic-select"),g=y("magic-table");return v(),k("div",Nl,[_(s,{index:t.value,"onUpdate:index":i[0]||(i[0]=f=>t.value=f),value:h(a).parameters},null,8,["index","value"]),_(g,{data:h(a).parameters,border:"",onClickRow:i[1]||(i[1]=f=>t.value=f),align:"center"},{default:w(()=>[_(r,{title:h(c)("message.required"),width:"65"},{default:w(({row:f})=>[_(o,{value:f.required,"onUpdate:value":E=>f.required=E},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:"Key"},{default:w(({row:f})=>[_(l,{value:f.name,"onUpdate:value":E=>f.name=E,border:!1},null,8,["value","onUpdate:value"])]),_:1}),_(r,{title:"Value"},{default:w(({row:f})=>[f.dataType==="MultipartFile"?(v(),V(u,{key:0,value:f.value,"onUpdate:value":E=>f.value=E,border:!1},null,8,["value","onUpdate:value"])):f.dataType==="MultipartFiles"?(v(),V(u,{key:1,value:f.value,"onUpdate:value":E=>f.value=E,border:!1,multiple:""},null,8,["value","onUpdate:value"])):(v(),V(l,{key:2,value:f.value,"onUpdate:value":E=>f.value=E,border:!1},null,8,["value","onUpdate:value"]))]),_:1}),_(r,{title:h(c)("message.parameterType"),width:"135"},{default:w(({row:f})=>[_(d,{options:n.$REQUEST_PARAMETER_TYPES,value:f.dataType,"onUpdate:value":E=>f.dataType=E,"default-select":n.$DEFAULT_REQUEST_PARAMETER_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1},8,["title"]),_(r,{title:h(c)("message.defaultValue")},{default:w(({row:f})=>[_(l,{value:f.defaultValue,"onUpdate:value":E=>f.defaultValue=E,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("api.validateType"),width:"115"},{default:w(({row:f})=>[_(d,{options:n.$VALIDATE_TYPES,value:f.validateType,"onUpdate:value":E=>f.validateType=E,"default-select":n.$DEFAULT_VALIDATE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1},8,["title"]),_(r,{title:h(c)("api.expression"),width:"220"},{default:w(({row:f})=>[_(l,{value:f.expression,"onUpdate:value":E=>f.expression=E,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("api.validate"),width:"165"},{default:w(({row:f})=>[_(l,{value:f.error,"onUpdate:value":E=>f.error=E,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("message.description"),flex:"2"},{default:w(({row:f})=>[_(l,{value:f.description,"onUpdate:value":E=>f.description=E,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"])]),_:1},8,["data"])])}}};var Dl=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"}));const Ml={class:"magic-panel-api"},Pl={__name:"magic-api-path",setup(e){const t=U(-1),a=oe("info");return(n,i)=>{const s=y("magic-panel-common-toolbar"),o=y("magic-input"),r=y("magic-table-column"),l=y("magic-select"),u=y("magic-table");return v(),k("div",Ml,[_(s,{index:t.value,"onUpdate:index":i[0]||(i[0]=d=>t.value=d),value:h(a).paths},null,8,["index","value"]),_(u,{data:h(a).paths,border:"",onClickRow:i[1]||(i[1]=d=>t.value=d),align:"center"},{default:w(()=>[_(r,{title:"Key"},{default:w(({row:d})=>[_(o,{value:d.name,"onUpdate:value":g=>d.name=g,border:!1},null,8,["value","onUpdate:value"])]),_:1}),_(r,{title:"Value"},{default:w(({row:d})=>[_(o,{value:d.value,"onUpdate:value":g=>d.value=g,border:!1},null,8,["value","onUpdate:value"])]),_:1}),_(r,{title:h(c)("message.parameterType"),width:"135"},{default:w(({row:d})=>[_(l,{options:n.$REQUEST_SIMPLE_TYPES,value:d.dataType,"onUpdate:value":g=>d.dataType=g,"default-select":n.$DEFAULT_REQUEST_SIMPLE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1},8,["title"]),_(r,{title:h(c)("api.validateType"),width:"115"},{default:w(({row:d})=>[_(l,{options:n.$VALIDATE_TYPES,value:d.validateType,"onUpdate:value":g=>d.validateType=g,"default-select":n.$DEFAULT_VALIDATE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1},8,["title"]),_(r,{title:h(c)("api.expression"),width:"220"},{default:w(({row:d})=>[_(o,{value:d.expression,"onUpdate:value":g=>d.expression=g,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("api.validate"),width:"165"},{default:w(({row:d})=>[_(o,{value:d.error,"onUpdate:value":g=>d.error=g,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("message.description"),flex:"2"},{default:w(({row:d})=>[_(o,{value:d.description,"onUpdate:value":g=>d.description=g,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"])]),_:1},8,["data"])])}}};var Ul=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"}));const $l={__name:"magic-api-request-body",setup(e){const t=oe("info"),a=oe("opened"),n=i=>{if(i.isFlush)return;const s=Nn(t.value.requestBody,t.value.requestBodyDefinition);s&&Ma(t.value.requestBodyDefinition,s)&&T.$emit($.NOTIFY,{title:c("message.tips"),id:"requestBodyStructure",icon:"info",content:c("api.structure.content","RequestBody"),buttons:[{title:c("api.structure.ok"),onClick:()=>{t.value.requestBodyDefinition=s,a.value.requestBodyTree=Qt(s)}},{title:c("message.cancel"),onClick:()=>{}}]})};return(i,s)=>{const o=y("magic-monaco-editor");return v(),V(o,{value:h(t).requestBody,"onUpdate:value":s[0]||(s[0]=r=>h(t).requestBody=r),language:"json",onChange:n},null,8,["value"])}}};var Fl=q($l,[["__scopeId","data-v-7f02b65d"]]),Bl=Object.freeze(Object.defineProperty({__proto__:null,default:Fl},Symbol.toStringTag,{value:"Module"}));const Hl=["onClick"],jl=["title"],Vl={key:0,align:"center",style:{flex:"1"}},Gl={key:1,align:"center",style:{flex:"1"}},zl={__name:"magic-api-request-structure",setup(e){const t=oe("opened"),a=_e(()=>{var i,s;return!t.value.requestBodyTree&&((s=(i=t.value)==null?void 0:i.item)==null?void 0:s.requestBodyDefinition)&&(t.value.requestBodyTree=Qt(t.value.item.requestBodyDefinition)),(t.value.requestBodyTree||[]).filter(o=>o.display)}),n=i=>{const s=t.value.requestBodyTree.findIndex(r=>r===i),o=i.level;i.expand=!i.expand;for(let r=s+1,l=t.value.requestBodyTree.length;ro)u.display=i.expand;else break}};return(i,s)=>{const o=y("magic-icon"),r=y("magic-table-column"),l=y("magic-checkbox"),u=y("magic-select"),d=y("magic-input"),g=y("magic-table");return v(),V(g,{data:h(a),border:""},{default:w(()=>[_(r,{title:h(c)("api.field")},{default:w(({row:f})=>[R("span",{style:Ve({paddingLeft:`${(f.level+(f.folder?0:1))*16}px`}),onClick:E=>n(f)},[f.folder?(v(),V(o,{key:0,icon:f.expand?"arrow-bottom":"arrow-right"},null,8,["icon"])):X("",!0)],12,Hl),R("span",{title:f.name||"-"},F(f.name||"-"),9,jl)]),_:1},8,["title"]),_(r,{title:h(c)("message.required"),width:"65"},{default:w(({row:f})=>[_(l,{value:f.node.required,"onUpdate:value":E=>f.node.required=E},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("message.type"),width:"80"},{default:w(({row:f})=>[_(u,{options:i.$BODY_DATA_TYPES,value:f.node.dataType,"onUpdate:value":E=>f.node.dataType=E,border:!1},null,8,["options","value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:"Value",flex:"2"},{default:w(({row:f})=>{var E;return[f.folder?(v(),k("p",Vl,"-")):(v(),k("span",{key:1,class:ve(["magic-data-type",(E=f.node.dataType)==null?void 0:E.toLowerCase()])},F(f.node.value),3))]}),_:1}),_(r,{title:h(c)("message.defaultValue")},{default:w(({row:f})=>[_(d,{value:f.node.defaultValue,"onUpdate:value":E=>f.node.defaultValue=E,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("api.validateType"),width:"115"},{default:w(({row:f})=>[_(u,{options:i.$VALIDATE_TYPES,value:f.node.validateType,"onUpdate:value":E=>f.node.validateType=E,"default-select":i.$DEFAULT_VALIDATE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1},8,["title"]),_(r,{title:h(c)("api.expression")},{default:w(({row:f})=>[_(d,{value:f.node.expression,"onUpdate:value":E=>f.node.expression=E,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("api.validate")},{default:w(({row:f})=>[_(d,{value:f.node.error,"onUpdate:value":E=>f.node.error=E,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("message.description")},{default:w(({row:f})=>[f.name?(v(),V(d,{key:0,value:f.node.description,"onUpdate:value":E=>f.node.description=E,border:!1},null,8,["value","onUpdate:value"])):(v(),k("p",Gl,"-"))]),_:1},8,["title"])]),_:1},8,["data"])}}};var Yl=q(zl,[["__scopeId","data-v-bda6618c"]]),ql=Object.freeze(Object.defineProperty({__proto__:null,default:Yl},Symbol.toStringTag,{value:"Module"}));const Kl=["src"],Wl={__name:"magic-api-response-body",setup(e){const t=oe("info"),a=oe("opened"),n=U(null),i=oe("ELEMENT_ROOT"),s=_e(()=>t.value.responseBody||""),o=_e(()=>{if(a.value.responseBlob){const l=a.value.responseHeaders["content-disposition"];if(l){const u=l.replace(/.*filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/,"$1");Da(a.value.responseBlobValue,u);return}return URL.createObjectURL(a.value.responseBlobValue)}}),r=l=>{const u=getComputedStyle(i.value),d=n.value.contentWindow.document.body.style;d.color=u.getPropertyValue("--main-color"),d.backgroundColor=u.getPropertyValue("--main-background-color")};return(l,u)=>{const d=y("magic-monaco-editor"),g=y("magic-empty");return h(a).responseBlob?h(o)?(v(),k("iframe",{key:1,src:h(o),onLoad:r,ref_key:"iframe",ref:n},null,40,Kl)):(v(),V(g,{key:2,text:h(c)("message.empty",h(c)("message.responseBody"))},null,8,["text"])):(v(),V(d,{key:0,value:h(s),"onUpdate:value":u[0]||(u[0]=f=>un(s)?s.value=f:null),language:"json",readonly:!0},null,8,["value"]))}}};var Xl=q(Wl,[["__scopeId","data-v-27b4e47a"]]),Jl=Object.freeze(Object.defineProperty({__proto__:null,default:Xl},Symbol.toStringTag,{value:"Module"}));const Ql=["title"],Zl=["title"],ec={__name:"magic-api-response-header",setup(e){const t=oe("opened"),a=_e(()=>Object.keys(t.value.responseHeaders||{}).map(n=>({key:n,value:t.value.responseHeaders[n]})));return(n,i)=>{const s=y("magic-table-column"),o=y("magic-table");return v(),V(o,{data:h(a),border:""},{default:w(()=>[_(s,{title:"Key"},{default:w(({row:r})=>[R("span",{title:r.key},F(r.key),9,Ql)]),_:1}),_(s,{title:"Value"},{default:w(({row:r})=>[R("span",{title:r.value},F(r.value),9,Zl)]),_:1})]),_:1},8,["data"])}}};var tc=q(ec,[["__scopeId","data-v-76813707"]]),ac=Object.freeze(Object.defineProperty({__proto__:null,default:tc},Symbol.toStringTag,{value:"Module"}));const nc=["onClick"],ic={key:0,align:"center",style:{flex:"1"}},sc={key:1,align:"center",style:{flex:"1"}},oc={__name:"magic-api-response-structure",setup(e){const t=oe("opened"),a=i=>{const s=t.value.responseBodyTree.findIndex(r=>r===i),o=i.level;i.expand=!i.expand;for(let r=s+1,l=t.value.responseBodyTree.length;ro)u.display=i.expand;else break}},n=_e(()=>{var i,s;return!t.value.responseBodyTree&&((s=(i=t.value)==null?void 0:i.item)==null?void 0:s.responseBodyDefinition)&&(t.value.responseBodyTree=Qt(t.value.item.responseBodyDefinition)),(t.value.responseBodyTree||[]).filter(o=>o.display)});return(i,s)=>{const o=y("magic-icon"),r=y("magic-table-column"),l=y("magic-select"),u=y("magic-input"),d=y("magic-table"),g=y("magic-empty");return h(n).length?(v(),V(d,{key:0,data:h(n),border:""},{default:w(()=>[_(r,{title:h(c)("api.field")},{default:w(({row:f})=>[R("span",{style:Ve({paddingLeft:`${(f.level+(f.folder?0:1))*16}px`}),onClick:E=>a(f)},[f.folder?(v(),V(o,{key:0,icon:f.expand?"arrow-bottom":"arrow-right"},null,8,["icon"])):X("",!0)],12,nc),R("span",null,F(f.name||"-"),1)]),_:1},8,["title"]),_(r,{title:h(c)("message.type"),width:"80"},{default:w(({row:f})=>[_(l,{options:i.$BODY_DATA_TYPES,value:f.node.dataType,"onUpdate:value":E=>f.node.dataType=E,border:!1},null,8,["options","value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:"Value",flex:"3"},{default:w(({row:f})=>{var E;return[f.folder?(v(),k("p",ic,"-")):(v(),k("span",{key:1,class:ve(["magic-data-type",(E=f.node.dataType)==null?void 0:E.toLowerCase()])},F(f.node.value),3))]}),_:1}),_(r,{title:h(c)("message.description")},{default:w(({row:f})=>[f.name?(v(),V(u,{key:0,value:f.node.description,"onUpdate:value":E=>f.node.description=E,border:!1},null,8,["value","onUpdate:value"])):(v(),k("p",sc,"-"))]),_:1},8,["title"])]),_:1},8,["data"])):(v(),V(g,{key:1,text:h(c)("message.empty",h(c)("message.responseBody"))},null,8,["text"]))}}};var rc=q(oc,[["__scopeId","data-v-051e4f5a"]]),lc=Object.freeze(Object.defineProperty({__proto__:null,default:rc},Symbol.toStringTag,{value:"Module"}));const cc={class:"magic-panel-api-response"},uc={__name:"magic-api-response",props:{opened:Object},setup(e){const t=[{title:c("message.responseBody"),component:ee("magic-api-response-body")},{title:c("message.responseHeader"),component:ee("magic-api-response-header")},{title:c("message.responseStructure"),component:ee("magic-api-response-structure")}];return(a,n)=>{const i=y("magic-navbar-item"),s=y("magic-navbar");return v(),k("div",cc,[_(s,{direction:"horizontal",ref:"navbar",style:{flex:"1"},"allow-close":!1,"tooltip-direction":"bottom"},{default:w(()=>[(v(),k(te,null,fe(t,(o,r)=>_(i,{key:r,title:o.title},{default:w(()=>[(v(),V(qn,null,[(v(),V(ee(o.component),{opened:e.opened},null,8,["opened"]))],1024))]),_:2},1032,["title"])),64))]),_:1},512)])}}};var dc=q(uc,[["__scopeId","data-v-1cf463a0"]]),pc=Object.freeze(Object.defineProperty({__proto__:null,default:dc},Symbol.toStringTag,{value:"Module"}));const _c={class:"magic-panel-global"},hc={__name:"magic-global-header",setup(e){const t=U(D.GLOBAL),a=U(-1);return(n,i)=>{const s=y("magic-panel-common-toolbar"),o=y("magic-input"),r=y("magic-table-column"),l=y("magic-table");return v(),k("div",_c,[_(s,{index:a.value,"onUpdate:index":i[0]||(i[0]=u=>a.value=u),value:t.value.headers},null,8,["index","value"]),_(l,{data:t.value.headers,border:"",onClickRow:i[1]||(i[1]=u=>a.value=u)},{default:w(()=>[_(r,{title:"Key"},{default:w(({row:u})=>[_(o,{value:u.name,"onUpdate:value":d=>u.name=d,border:!1},null,8,["value","onUpdate:value"])]),_:1}),_(r,{title:"Value"},{default:w(({row:u})=>[_(o,{value:u.value,"onUpdate:value":d=>u.value=d,border:!1},null,8,["value","onUpdate:value"])]),_:1})]),_:1},8,["data"])])}}};var fc=Object.freeze(Object.defineProperty({__proto__:null,default:hc},Symbol.toStringTag,{value:"Module"}));const gc={class:"magic-panel-global"},mc={__name:"magic-global-parameter",setup(e){const t=U(-1),a=U(D.GLOBAL);return(n,i)=>{const s=y("magic-panel-common-toolbar"),o=y("magic-input"),r=y("magic-table-column"),l=y("magic-file"),u=y("magic-table");return v(),k("div",gc,[_(s,{index:t.value,"onUpdate:index":i[0]||(i[0]=d=>t.value=d),value:a.value.parameters},null,8,["index","value"]),_(u,{data:a.value.parameters,border:"",onClickRow:i[1]||(i[1]=d=>t.value=d)},{default:w(()=>[_(r,{title:"Key"},{default:w(({row:d})=>[_(o,{value:d.name,"onUpdate:value":g=>d.name=g,border:!1},null,8,["value","onUpdate:value"])]),_:1}),_(r,{title:"Value"},{default:w(({row:d})=>[d.dataType==="MultipartFile"?(v(),V(l,{key:0,value:d.value,"onUpdate:value":g=>d.value=g,border:!1},null,8,["value","onUpdate:value"])):d.dataType==="MultipartFiles"?(v(),V(l,{key:1,value:d.value,"onUpdate:value":g=>d.value=g,border:!1,multiple:""},null,8,["value","onUpdate:value"])):(v(),V(o,{key:2,value:d.value,"onUpdate:value":g=>d.value=g,border:!1},null,8,["value","onUpdate:value"]))]),_:1})]),_:1},8,["data"])])}}};var vc=Object.freeze(Object.defineProperty({__proto__:null,default:mc},Symbol.toStringTag,{value:"Module"}));const bc={class:"magic-global"},Ec={__name:"magic-global",setup(e){const t=[{title:"\u5168\u5C40\u8BF7\u6C42\u53C2\u6570",component:ee("magic-global-parameter")},{title:"\u5168\u5C40\u8BF7\u6C42Header",component:ee("magic-global-header")}];return(a,n)=>{const i=y("magic-navbar-item"),s=y("magic-navbar");return v(),k("div",bc,[_(s,{direction:"horizontal",ref:"navbar",style:{flex:"1"},"allow-close":!1},{default:w(()=>[(v(),k(te,null,fe(t,(o,r)=>_(i,mt({key:r},o),{default:w(()=>[(v(),V(ee(o.component)))]),_:2},1040)),64))]),_:1},512)])}}};var yc=q(Ec,[["__scopeId","data-v-03e7bbcc"]]),Tc=Object.freeze(Object.defineProperty({__proto__:null,default:yc},Symbol.toStringTag,{value:"Module"}));const Sc={__name:"magic-panel-common-toolbar",props:{value:Array,index:Number},emits:["update:index"],setup(e,{emit:t}){const a=e,n=[{title:c("message.addRow"),icon:"plus",onClick(){a.value.push({}),t("update:index",a.value.length-1)}},{title:c("message.removeRow"),icon:"minus",onClick(){a.value.length>0&&(a.value.splice(a.index==-1?a.value.length-1:a.index,1),t("update:index",-1))}}];return(i,s)=>{const o=y("magic-panel-toolbar");return v(),V(o,{toolbars:n})}}};var xc=Object.freeze(Object.defineProperty({__proto__:null,default:Sc},Symbol.toStringTag,{value:"Module"}));const Oc={class:"magic-panel-toolbar"},Rc=["data-title","data-tooltip-direction","onClick","title"],Ac={__name:"magic-panel-toolbar",props:{toolbars:Array,tooltipDirection:{type:String,default:"right"}},setup(e){const t=e,a=U(t.toolbars),n=i=>{i.selectable?i.disabled!==!0&&(t.toolbars.filter(s=>s.selectable).forEach(s=>s.selected=!1),i.selected=i.selected!==!0,i.onSelect&&i.onSelect(i.selected)):i.disabled!==!0&&i.onClick()};return(i,s)=>{const o=y("magic-icon");return v(),k("ul",Oc,[(v(!0),k(te,null,fe(a.value,(r,l)=>(v(),k("li",{key:l,"data-title":r.title,"data-tooltip-direction":e.tooltipDirection,onClick:ye(u=>n(r),["stop"]),class:ve({disabled:r.disabled,selected:r.selected}),title:"x"+r.selected},[_(o,{icon:r.icon},null,8,["icon"])],10,Rc))),128))])}}};var Cc=q(Ac,[["__scopeId","data-v-332dea14"]]),Ic=Object.freeze(Object.defineProperty({__proto__:null,default:Cc},Symbol.toStringTag,{value:"Module"}));const kc={class:"magic-resource-choose"},Lc={key:0},Nc={key:2},wc={__name:"magic-resource-choose",props:{value:[Array,Object],type:String,single:{type:Boolean,default:()=>!1},file:{type:Boolean,default:()=>!0}},emits:["update:value"],setup(e,{expose:t,emit:a}){const n=e,i=oe("resources"),s=oe("service"),o=U([]),r=()=>{let m=[],N=C=>{C.id.endsWith("-root")?m.push({type:"root",id:C.type}):m.push({type:C.folder?"group":C.type,id:C.id}),C.children&&C.children.filter(x=>x.selected).forEach(x=>N(x))};o.value.filter(C=>C.selected).forEach(C=>N(C)),a("update:value",n.single?m[0]:m)},l=(m,N)=>{let C=[];return m&&m.filter(x=>x.id).forEach(x=>{var b;if(x.folder||n.file){if(x.folder)x.icon="list";else{const S=(b=s[N.type])==null?void 0:b.getIcon;x.icon=S&&S(x)||N.icon,x.textIcon=S!==void 0,x.type=N.type}C.push(x)}x.folder&&x.children&&(x.children=l(x.children,N))}),C},u=m=>{let N=m,C=[],x=b=>{b.forEach(S=>{S.id===N?(C.push(S),N=S.parentId||S.groupId,x(o.value)):S.children&&S.children.length>0&&x(S.children)})};return x(o.value),C},d=(m,N)=>{N!==void 0&&(m.selected=N);let C=x=>{x.selected=n.single?!1:m.selected,x.checkedHalf=n.single?!1:!m.selected,x.children&&x.children.forEach(b=>C(b))};m.children&&m.children.forEach(x=>C(x)),m.folder&&(m.checkedHalf=!1),u(m.folder?m.parentId:m.groupId).forEach(x=>{x.selected=n.single?!1:x.children.some(b=>b.selected),x.checkedHalf=n.single?!1:x.children.some(b=>!b.selected||b.checkedHalf)}),n.single?a("update:value",m.selected?m:void 0):r()},g=m=>d(m,!m.selected);return i().filter(m=>!n.type||n.type===m.navbar.type).forEach(m=>{const N=m.navbar.type,C=l(m.tree,m.navbar);C.forEach(x=>{x.folder?x.parentId=N+"-root":x.groupId=N+"-root"}),o.value.push({icon:m.navbar.icon,name:m.navbar.title,iconClass:"root",folder:!0,opened:!0,type:m.navbar.type,id:N+"-root",children:C})}),t({selectAll:m=>Ze(o.value,N=>{N.checkedHalf=!1,N.selected=m,N.children&&N.children.forEach(C=>C.selected=m),r()}),expand:m=>Ze(o.value,N=>{N.folder&&(N.opened=m)})}),(m,N)=>{const C=y("magic-checkbox"),x=y("magic-icon"),b=y("magic-text-icon"),S=y("magic-tree");return v(),k("div",kc,[_(S,{data:o.value,sort:!1,onItemClick:g},{folder:w(({item:A})=>[_(C,{value:A.selected,"onUpdate:value":M=>A.selected=M,"checked-half":A.checkedHalf,onChange:M=>d(A)},null,8,["value","onUpdate:value","checked-half","onChange"]),_(x,{icon:A.opened?"arrow-bottom":"arrow-right",onClick:ye(M=>A.opened=!A.opened,["stop"])},null,8,["icon","onClick"]),_(x,{icon:A.icon,class:ve(A.iconClass)},null,8,["icon","class"]),R("label",null,F(A.name),1),A.path?(v(),k("span",Lc,"("+F(A.path)+")",1)):X("",!0)]),file:w(({item:A})=>[_(C,{value:A.selected,"onUpdate:value":M=>A.selected=M,"checked-half":A.checkedHalf,onChange:M=>d(A)},null,8,["value","onUpdate:value","checked-half","onChange"]),A.textIcon?(v(),V(b,{key:0,icon:A.icon},null,8,["icon"])):(v(),V(x,{key:1,icon:A.icon},null,8,["icon"])),R("label",null,F(A.name),1),A.path?(v(),k("span",Nc,"("+F(A.path)+")",1)):X("",!0)]),_:1},8,["data"])])}}};var Dc=q(wc,[["__scopeId","data-v-4852fc0e"]]),Mc=Object.freeze(Object.defineProperty({__proto__:null,default:Dc},Symbol.toStringTag,{value:"Module"}));const Pc={class:"magic-form-row"},Uc={class:"magic-form-row"},$c=R("label",null,"Key",-1),Fc={class:"magic-form-row"},Bc=R("label",null,"URL",-1),Hc={class:"magic-form-row"},jc={class:"magic-form-row"},Vc={class:"magic-form-row"},Gc={class:"magic-form-row"},zc={class:"magic-form-row"},Yc=R("label",null,"maxRows",-1),qc={class:"magic-form-row"},Kc={__name:"magic-datasource-datasource",props:{info:Object},setup(e){const{info:t}=e,a=U(JSON.stringify(t.properties||{}));return et(a,n=>{try{t.properties=JSON.parse(n)}catch{t.properties={}}}),(n,i)=>{const s=y("magic-input"),o=y("magic-select"),r=y("magic-monaco-editor");return v(),k(te,null,[R("div",Pc,[R("label",null,F(h(c)("message.name")),1),_(s,{value:e.info.name,"onUpdate:value":i[0]||(i[0]=l=>e.info.name=l),placeholder:h(c)("datasource.form.placeholder.name")},null,8,["value","placeholder"])]),R("div",Uc,[$c,_(s,{value:e.info.key,"onUpdate:value":i[1]||(i[1]=l=>e.info.key=l),placeholder:h(c)("datasource.form.placeholder.key")},null,8,["value","placeholder"])]),R("div",Fc,[Bc,_(s,{value:e.info.url,"onUpdate:value":i[2]||(i[2]=l=>e.info.url=l),placeholder:h(c)("datasource.form.placeholder.url")},null,8,["value","placeholder"])]),R("div",Hc,[R("label",null,F(h(c)("message.username")),1),_(s,{value:e.info.username,"onUpdate:value":i[3]||(i[3]=l=>e.info.username=l),placeholder:h(c)("datasource.form.placeholder.username")},null,8,["value","placeholder"])]),R("div",jc,[R("label",null,F(h(c)("message.password")),1),_(s,{value:e.info.password,"onUpdate:value":i[4]||(i[4]=l=>e.info.password=l),type:"password",placeholder:h(c)("datasource.form.placeholder.password")},null,8,["value","placeholder"])]),R("div",Vc,[R("label",null,F(h(c)("datasource.form.driver")),1),_(o,{inputable:"",value:e.info.driverClassName,"onUpdate:value":i[5]||(i[5]=l=>e.info.driverClassName=l),width:"100%",options:h(D).JDBC_DRIVERS.map(l=>({text:l,value:l})),placeholder:h(c)("datasource.form.placeholder.driver")},null,8,["value","options","placeholder"])]),R("div",Gc,[R("label",null,F(h(c)("datasource.form.type")),1),_(o,{inputable:"",value:e.info.type,"onUpdate:value":i[6]||(i[6]=l=>e.info.type=l),width:"100%",options:h(D).DATASOURCE_TYPES.map(l=>({text:l,value:l})),placeholder:h(c)("datasource.form.placeholder.type")},null,8,["value","options","placeholder"])]),R("div",zc,[Yc,_(s,{value:e.info.maxRows,"onUpdate:value":i[7]||(i[7]=l=>e.info.maxRows=l),placeholder:h(c)("datasource.form.placeholder.maxRows"),"default-value":-1,type:"number"},null,8,["value","placeholder"])]),R("div",qc,[R("label",null,F(h(c)("datasource.form.other")),1),_(r,{language:"json",value:a.value,"onUpdate:value":i[8]||(i[8]=l=>a.value=l),style:{height:"150px"}},null,8,["value"])])],64)}}};var Wc=Object.freeze(Object.defineProperty({__proto__:null,default:Kc},Symbol.toStringTag,{value:"Module"}));const Xc={class:"magic-backup-file"},Jc={class:"magic-backup-file-diff-container"},Qc={__name:"magic-backup-file",props:{id:String},setup(e){const t=e,a=oe("service"),n=U(""),i=U(!0),s=U(!0),o=We([]),r=U({}),l=U([]),u=U(""),d=()=>{u.value=a[r.value.type].language||"magicscript";const m=[];s.value=!0,n.value||m.push(new Promise(N=>Y.sendGet("/resource/file/"+t.id).success(C=>n.value=C).end(()=>N()))),m.push(new Promise(N=>Y.sendGet("/backup",{id:t.id,timestamp:r.value.createDate}).success(C=>r.value.script=C).end(()=>N()))),Promise.all(m).then(()=>{var N;s.value=!1,l.value=[r.value.script,(N=n.value)==null?void 0:N.script]}).catch(N=>{console.error(N),s.value=!1})},g=()=>{i.value=!0,Y.sendGet("/backup/"+t.id).success(m=>{m&&m.length>0&&(o.length=0,o.push(...m),r.value=o[0]||{},r.value&&d()),i.value=!1})};g(),et(()=>t.id,g);const f=()=>{const m=`${r.value.name}(${qe(r.value.createDate)})`;Y.sendPost("/backup/rollback",{id:t.id,timestamp:r.value.createDate}).success(N=>{N?(me.alert(c("backup.rollbackSuccess",m)),T.status("backup.rollbackSuccess",!0,m),T.$emit($.REFRESH_RESOURCE,t.id)):(me.alert(c("backup.rollbackFailed",m)),T.status("backup.rollbackFailed",!1,m))})},E=m=>{r.value=o[m],d()};return(m,N)=>{const C=y("magic-table-column"),x=y("magic-table"),b=y("magic-button"),S=y("magic-monaco-diff-editor"),A=y("magic-loading"),M=y("magic-empty");return v(),V(A,{loading:i.value},{default:w(()=>[R("div",Xc,[o.length>0?(v(),k(te,{key:0},[_(x,{data:o,border:!0,onClickRow:E},{default:w(()=>[_(C,{title:h(c)("message.date"),width:"160",class:"selected"},{default:w(({row:I})=>[pe(F(h(qe)(I.createDate)),1)]),_:1},8,["title"]),_(C,{title:h(c)("history.operator"),width:"100"},{default:w(({row:I})=>[pe(F(I.createBy||"guest"),1)]),_:1},8,["title"])]),_:1},8,["data"]),R("div",Jc,[R("ul",null,[R("li",null,[pe(F(h(qe)(r.value.createDate))+" by "+F(r.value.createBy||"guest")+" ",1),_(b,{value:h(c)("backup.rollback"),type:"active",onClick:f},null,8,["value"])]),R("li",null,[pe(F(h(c)("backup.current")),1),n.value?(v(),k(te,{key:0},[pe("("+F(h(qe)(n.value.updateTime||n.value.createTime))+" by "+F(n.value.updateBy||n.value.createBy||"guest")+")",1)],64)):X("",!0)])]),s.value?(v(),V(A,{key:1,loading:s.value},null,8,["loading"])):(v(),V(S,{key:0,value:l.value,"onUpdate:value":N[0]||(N[0]=I=>l.value=I),language:u.value},null,8,["value","language"]))])],64)):(v(),V(M,{key:1,text:h(c)("message.empty",h(c)("history.name"))},null,8,["text"]))])]),_:1},8,["loading"])}}};var Zc=q(Qc,[["__scopeId","data-v-ef606938"]]),eu=Object.freeze(Object.defineProperty({__proto__:null,default:Zc},Symbol.toStringTag,{value:"Module"}));const tu={class:"magic-backup"},au={class:"magic-backup-diff-container"},nu={class:"magic-backup-diff-header"},iu={__name:"magic-backup",setup(e){const t=ee("magic-backup-file"),a=U(!0),n=[{icon:"refresh",title:c("message.refresh"),onClick(){m()}},{icon:"copy",title:c("backup.full"),onClick(){Y.sendPost("/backup/full").success(()=>{T.status("backup.backupSuccess"),m()})}}],i=U([]),s=U([]),o=U(!1),r=U(!0),l=U(""),u=U({}),d=U("magicscript");let g=!1,f=!1,E;const m=H=>{a.value=!0,Y.sendGet("/backups",{timestamp:H}).success(L=>{H?s.value.push(...L):s.value=L,(f=L.length>=100)&&(E=L[L.length-1].createDate),a.value=!1})},N=oe("service"),C=U({}),x=H=>{var L,j;return H.endsWith("-group")?c("message.group",((L=N[H.replace("-group","")])==null?void 0:L.name)||"Unknown"):H==="full"?c("backup.full"):((j=N[H])==null?void 0:j.name)||H};let b=!1;T.$on($.LOAD_RESOURCES_FINISH,H=>H||m());const S=()=>{f&&!g&&m(E)};pt(()=>{!b&&D.LOGINED&&m(),b=!0});const{proxy:A}=bt(),M=(H,L)=>{const j=[],ie=N[L.type];L.id!=="full"&&!(L.type&&L.type.endsWith("-group"))&&!(ie&&ie.requireScript===!1)&&(j.push({icon:"difference",label:c("backup.difference"),onClick(){l.value=qe(L.createDate),o.value=!0,r.value=!0,d.value=N[L.type].language||"magicscript",Promise.all([new Promise(se=>Y.sendGet("/backup",{id:L.id,timestamp:L.createDate}).success(J=>se(J))),new Promise(se=>Y.sendGet("/resource/file/"+L.id).success(J=>se(J)))]).then(se=>{var J;C.value=se[1],u.value=L,r.value=!1,i.value=[se[0],(J=se[1])==null?void 0:J.script]}).catch(se=>{console.error(se),o.value=!1})}}),j.push({label:c("toolbars.history"),icon:"history",onClick:()=>{T.$emit($.ADD_FOOTER_TOOLBAR,{component:Ue(t),id:"backup-file",icon:"history",title:c("toolbars.viewHistory",L.name),allowClose:!0,data:{id:L.id}})}})),(L.id==="full"||!L.type.endsWith("-group"))&&j.push({icon:"rollback",label:c("backup.rollback"),onClick(){const se=`${L.name}(${qe(L.createDate)})`;me.confirm(c("backup.rollback"),c("backup.rollbackConfirm"),()=>{Y.sendPost("/backup/rollback",{id:L.id,timestamp:L.createDate}).success(J=>{J?(T.status("backup.rollbackSuccess",!0,se),T.$emit($.LOAD_RESOURCES)):(me.alert(c("backup.rollbackFailed",se)),T.status("backup.rollbackFailed",!1,se))})})}}),j.length>0&&A.$contextmenu({event:H,menus:j})},I=()=>{o.value=!1;const H=`${u.value.name}(${qe(u.value.createDate)})`;Y.sendPost("/backup/rollback",{id:u.value.id,timestamp:u.value.createDate}).success(L=>{L?(me.alert(c("backup.rollbackSuccess",H)),T.status("backup.rollbackSuccess",!0,H),T.$emit($.REFRESH_RESOURCE,u.value.id)):(me.alert(c("backup.rollbackFailed",H)),T.status("backup.rollbackFailed",!1,H))})};return(H,L)=>{const j=y("magic-panel-toolbar"),ie=y("magic-loading"),se=y("magic-table-column"),J=y("magic-table"),Ee=y("magic-empty"),xe=y("magic-monaco-diff-editor"),Xe=y("magic-button"),St=y("magic-button-group"),Ne=y("magic-dialog");return v(),k(te,null,[R("div",tu,[_(j,{toolbars:n}),R("div",null,[_(ie,{loading:a.value},null,8,["loading"]),s.value.length>0?(v(),V(J,{key:0,data:s.value,border:!0,onContextmenu:M,onLoadNext:S},{default:w(()=>[_(se,{title:h(c)("message.date"),width:"160"},{default:w(({row:ke})=>[pe(F(h(qe)(ke.createDate)),1)]),_:1},8,["title"]),_(se,{title:h(c)("message.type"),width:"90"},{default:w(({row:ke})=>[R("span",null,F(x(ke.type)),1)]),_:1},8,["title"]),_(se,{title:h(c)("history.operator"),width:"100"},{default:w(({row:ke})=>[pe(F(ke.createBy||"guest"),1)]),_:1},8,["title"]),_(se,{title:h(c)("message.name"),align:"left"},{default:w(({row:ke})=>[pe(F(ke.name),1)]),_:1},8,["title"])]),_:1},8,["data"])):(v(),V(Ee,{key:1,text:h(c)("message.empty",h(c)("history.name"))},null,8,["text"]))])]),_(Ne,{value:o.value,"onUpdate:value":L[1]||(L[1]=ke=>o.value=ke),title:h(c)("history.name"),width:"80%",maxWidth:"100%",top:"60px",height:"80%",className:"magic-dialog-diff"},{default:w(()=>[R("div",au,[R("div",nu,[R("div",null,F(l.value)+" by "+F(u.value.createBy||"guest"),1),R("div",null,F(h(c)("backup.current"))+"("+F(h(qe)(C.value.updateTime||C.value.createTime))+" by "+F(C.value.updateBy||C.value.createBy||"guest")+")",1)]),r.value?(v(),V(ie,{key:1,loading:r.value},null,8,["loading"])):(v(),V(xe,{key:0,value:i.value,"onUpdate:value":L[0]||(L[0]=ke=>i.value=ke),language:d.value},null,8,["value","language"]))]),_(St,{align:"right"},{default:w(()=>[_(Xe,{value:h(c)("backup.rollback"),type:"active",onClick:I},null,8,["value"])]),_:1})]),_:1},8,["value","title"])],64)}}};var su=q(iu,[["__scopeId","data-v-b15945c0"]]),ou=Object.freeze(Object.defineProperty({__proto__:null,default:su},Symbol.toStringTag,{value:"Module"}));const lt=e=>(Aa("data-v-71b796dc"),e=e(),Ca(),e),ru={class:"magic-debug"},lu={class:"magic-debug-variables"},cu={key:0,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},uu=lt(()=>R("path",{d:"M201.472 320h-49.6V129.408l-59.2 18.368v-40.32L196.16 70.4h5.312V320z m50.816 320.128H81.024v-33.92l80.832-86.208c6.016-6.656 11.136-12.672 15.36-18.176a133.76 133.76 0 0 0 10.112-15.104 57.728 57.728 0 0 0 5.504-12.8 42.88 42.88 0 0 0 1.6-11.392c0-11.136-2.816-19.84-8.384-26.24-5.632-6.272-13.632-9.472-24.064-9.472a36.224 36.224 0 0 0-15.488 3.2 31.808 31.808 0 0 0-11.328 8.704 39.232 39.232 0 0 0-6.976 13.312 56.32 56.32 0 0 0-2.368 16.832h-49.792c0-11.2 1.984-21.76 6.016-31.744 3.968-9.984 9.792-18.624 17.28-26.112 7.616-7.424 16.704-13.312 27.392-17.664 10.688-4.352 22.784-6.528 36.16-6.528 13.12 0 24.768 1.664 34.88 4.928 10.176 3.2 18.624 7.872 25.536 13.952 6.848 6.08 12.032 13.504 15.616 22.336 3.52 8.768 5.312 18.688 5.312 29.696 0 8.32-1.28 16.384-3.968 24.192-2.56 7.744-6.336 15.552-11.136 23.296a190.08 190.08 0 0 1-17.408 23.68 528.64 528.64 0 0 1-22.784 24.768l-44.096 46.464h107.456v40zM131.456 812.8h26.432c12.608 0 21.888-3.136 27.968-9.408a34.56 34.56 0 0 0 9.088-25.088 38.656 38.656 0 0 0-2.048-12.8 26.304 26.304 0 0 0-16.832-16.704 42.112 42.112 0 0 0-14.912-2.432 41.792 41.792 0 0 0-12.928 1.984 33.664 33.664 0 0 0-10.688 5.568 25.6 25.6 0 0 0-9.856 20.608H78.08a60.8 60.8 0 0 1 6.4-28.032c4.352-8.448 10.176-15.552 17.536-21.44 7.424-5.888 16-10.496 25.984-13.76 9.984-3.2 20.608-4.864 32-4.864 12.544 0 24 1.472 34.368 4.48 10.368 3.072 19.2 7.616 26.688 13.632 7.424 5.952 13.184 13.44 17.28 22.272 4.16 8.896 6.208 19.2 6.208 30.848a52.8 52.8 0 0 1-9.856 30.72 67.968 67.968 0 0 1-28.032 22.976 62.08 62.08 0 0 1 31.488 22.656 61.44 61.44 0 0 1 10.368 35.712 66.56 66.56 0 0 1-25.408 54.336c-7.872 6.208-17.28 10.88-28.032 14.208a121.024 121.024 0 0 1-66.368 0.64 81.92 81.92 0 0 1-27.2-13.248 68.032 68.032 0 0 1-19.2-22.4 66.304 66.304 0 0 1-7.296-32h49.6a29.824 29.824 0 0 0 10.368 22.912 36.48 36.48 0 0 0 11.584 6.592 48.64 48.64 0 0 0 30.4 0 30.336 30.336 0 0 0 19.392-17.792 46.208 46.208 0 0 0-0.256-31.04 28.544 28.544 0 0 0-8.192-11.584 34.304 34.304 0 0 0-12.928-6.592 63.104 63.104 0 0 0-17.088-2.176h-26.432V812.8z",fill:"#9AA7B0"},null,-1)),du=lt(()=>R("path",{d:"M384 128h512v192H384zM384 768h512v192H384zM384 448h512v192H384z",fill:"#40B6E0","fill-opacity":".7"},null,-1)),pu=[uu,du],_u={key:1,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},hu=lt(()=>R("path",{d:"M192 128h640v192H192zM192 384h640v192H192zM192 640h640v192H192z",fill:"#F4AF3D","fill-opacity":".6"},null,-1)),fu=[hu],gu={class:"key"},mu=lt(()=>R("label",{class:"separator"},"=",-1)),vu={key:2,class:"object-type"},bu={key:3,class:"object-type"},Eu={key:0,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},yu=lt(()=>R("path",{d:"M128 128h768v768H128z",fill:"#40B6E0","fill-opacity":".6","p-id":"8251"},null,-1)),Tu=lt(()=>R("path",{d:"M691.968 704V422.912l-62.464 15.36L613.12 373.76l102.912-30.72h53.76V704h-77.824z m-284.288 6.144c-95.744 0-158.72-80.384-158.72-184.32V524.8c0-103.936 64.512-185.344 159.744-185.344 94.72 0 158.72 80.384 158.72 184.32V524.8c0 103.936-64 185.344-159.744 185.344z m1.408-71.168c47.616 0 77.824-48.128 77.824-113.152V524.8c0-65.024-31.744-114.176-78.848-114.176S330.24 458.24 330.24 523.776V524.8c0 65.536 31.232 114.176 78.848 114.176z",fill:"#231F20","fill-opacity":".7","p-id":"8252"},null,-1)),Su=[yu,Tu],xu={key:1,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Ou=lt(()=>R("path",{d:"M192 128h640v192H192zM192 384h640v192H192zM192 640h640v192H192z",fill:"#F4AF3D","fill-opacity":".6"},null,-1)),Ru=[Ou],Au={class:"key"},Cu=lt(()=>R("label",{class:"separator"},"=",-1)),Iu={key:2,class:"object-type"},ku={__name:"magic-debug",setup(e){const t=oe("opened"),a=_e(()=>!t.value.variables),n=U([{title:c("editor.tooltip.resume")+"(F8)",icon:"continue",disabled:a,onClick(){T.$emit($.DEBUG_CONTINUE)}},{title:c("editor.tooltip.stepInto")+"(F6)",icon:"step-over",disabled:a,onClick(){T.$emit($.DEBUG_SETPINTO)}},{title:c("resource.header.expand"),icon:"expand-all",disabled:a,onClick:()=>Ze(t.value.variables,i=>i.opened=!0)},{title:c("resource.header.collapse"),icon:"collapse-all",disabled:a,onClick:()=>Ze(t.value.variables,i=>i.opened=!1)}]);return(i,s)=>{const o=y("magic-panel-toolbar"),r=y("magic-icon"),l=y("magic-tree"),u=y("magic-empty");return v(),k("div",ru,[_(o,{toolbars:n.value},null,8,["toolbars"]),R("div",lu,[h(t).variables?(v(),V(l,{key:0,data:h(t).variables},{folder:w(({item:d})=>[_(r,{icon:d.opened?"arrow-bottom":"arrow-right",onClick:ye(g=>d.opened=!d.opened,["stop"])},null,8,["icon","onClick"]),d.dataType==="array"?(v(),k("svg",cu,pu)):(v(),k("svg",_u,fu)),R("label",gu,F(d.name),1),mu,d.size?(v(),k("span",vu,"("+F(d.size)+")",1)):X("",!0),d.type?(v(),k("span",bu,F(`{${d.type}}`),1)):X("",!0)]),file:w(({item:d})=>[_(r,{icon:"empty"}),d.dataType==="number"?(v(),k("svg",Eu,Su)):(v(),k("svg",xu,Ru)),R("label",Au,F(d.name),1),Cu,R("span",{class:ve(["magic-data-type",d.dataType])},F(d.value),3),d.type&&!d.isNull?(v(),k("span",Iu," ("+F(d.type)+")",1)):X("",!0)]),_:1},8,["data"])):(v(),V(u,{key:1,text:h(c)("message.empty",h(c)("message.variable"))},null,8,["text"]))])])}}};var Lu=q(ku,[["__scopeId","data-v-71b796dc"]]),Nu=Object.freeze(Object.defineProperty({__proto__:null,default:Lu},Symbol.toStringTag,{value:"Module"}));const wu={class:"magic-event"},Du=["innerHTML"],Mu={__name:"magic-event",setup(e){const t=T.getStatusLog(),a=[{title:c("message.clear"),icon:"clear",onClick:()=>{T.clearStatusLog()}}];return(n,i)=>{const s=y("magic-panel-toolbar"),o=y("magic-table-column"),r=y("magic-table");return v(),k("div",wu,[_(s,{toolbars:a}),R("div",null,[_(r,{data:h(t),border:"",align:"left"},{default:w(()=>[_(o,{title:h(c)("message.date"),width:"180"},{default:w(({row:l})=>[pe(F(l.timestamp),1)]),_:1},8,["title"]),_(o,{title:h(c)("event.message")},{default:w(({row:l})=>[R("div",{innerHTML:l.content},null,8,Du)]),_:1},8,["title"])]),_:1},8,["data"])])])}}};var Pu=q(Mu,[["__scopeId","data-v-06d5ba36"]]),Uu=Object.freeze(Object.defineProperty({__proto__:null,default:Pu},Symbol.toStringTag,{value:"Module"}));const $u={class:"magic-log-wrapper"},Fu=["innerHTML"],Bu=["onClick"],Hu={__name:"magic-log",setup(e){const t=U([]),a=U(!1),n=U([{icon:"expand-all",title:c("resource.header.expand"),onClick:()=>t.value.forEach(d=>d.showMore=!0)},{icon:"collapse-all",title:c("resource.header.collapse"),onClick:()=>t.value.forEach(d=>d.showMore=!1)},{icon:"delete",title:c("message.clear"),onClick:()=>t.value.splice(0)},{icon:"scroll-down",title:c("log.scrollEnd"),selectable:!0,onSelect:d=>{a.value=d,o()}}]),i=U(null),{proxy:s}=bt(),o=()=>{a.value&&be(()=>{i.value&&(i.value.scrollTop=i.value.scrollHeight)})},r=d=>{s.$contextmenu({event:d,menus:[{icon:"delete",label:c("message.clear"),onClick:()=>t.value.splice(0)},{icon:"expand-all",label:c("resource.header.expand"),onClick:()=>t.value.forEach(g=>g.showMore=!0)},{icon:"collapse-all",label:c("resource.header.collapse"),onClick:()=>t.value.forEach(g=>g.showMore=!1)}]})},l=d=>{const g=d.map(f=>{let E=f.replace(/[&<>]/gm,function(N){return N==="&"?"&":N==="<"?"<":N===">"?">":""});E=E.replace(/(\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{3}\s+)([^\s]+)( --- \[)(.{15})(] )(.{40})/gm,'$1 $2$3$4$5$6'),E=E.replace(/(https?:\/\/[^\s]+)/gm,'$1'),E=E.replace(/(\tat .*\()(.*?:\d+)(\).*?[\r\n])/g,'$1$2$3');let m=f.split(` +`).length;return{html:E,multiple:m>3,lines:m-3,showMore:!1}});g&&(t.value.push(...g),D.LOG_MAX_ROWS!==1/0&&t.value.length>D.LOG_MAX_ROWS&&t.value.splice(0,t.value.length-D.LOG_MAX_ROWS),o())};T.$event(Se.LOGS,([d])=>l(d)),T.$event(Se.LOG,([d])=>l(d));const u=new IntersectionObserver(()=>{o()});return pt(()=>{u.observe(i.value)}),(d,g)=>{const f=y("magic-panel-toolbar"),E=y("magic-empty");return v(),k("div",$u,[_(f,{toolbars:n.value},null,8,["toolbars"]),!t.value||t.value.length===0?(v(),V(E,{key:0,text:h(c)("message.empty",h(c)("message.log"))},null,8,["text"])):X("",!0),gt(R("div",{class:"magic-log",ref_key:"element",ref:i,onContextmenu:g[0]||(g[0]=ye(m=>r(m),["prevent"]))},[(v(!0),k(te,null,fe(t.value,(m,N)=>(v(),k("div",{class:ve({multiple:m.multiple,more:m.showMore}),key:"run_log_"+N},[R("pre",{innerHTML:m.html},null,8,Fu),m.multiple?(v(),k("span",{key:0,class:"multiple",onClick:C=>m.showMore=!m.showMore},F(m.showMore?h(c)("log.hide"):h(c)("log.show",m.lines)),9,Bu)):X("",!0)],2))),128))],544),[[Mt,t.value&&t.value.length>0]])])}}};var ju=Object.freeze(Object.defineProperty({__proto__:null,default:Hu},Symbol.toStringTag,{value:"Module"}));const Vu={class:"magic-online"},Gu={__name:"magic-online",setup(e){const t=We([]),a=oe("activateUserFiles"),n=(s,o)=>{const r=t.find(l=>l.cid===s);r&&(Object.values(a.value).forEach(l=>{const u=l.findIndex(d=>d.cid===s);u>-1&&l.splice(u,1)}),a.value[o]=a.value[o]||[],a.value[o].push(r))},i=s=>{t.some(o=>o.cid===s.cid)||t.push(s)};return T.$event(Se.LOGIN_RESPONSE,([s,o])=>{a.value={},t.splice(0,t.length),s==="1"&&i(o)}),T.$event(Se.PING,()=>{T.send(Se.PONG)}),T.$event(Se.USER_LOGIN,([s])=>{D.CLIENT_ID!==s.cid&&(T.$emit($.NOTIFY,{title:c("online.login"),content:c("online.loginTips",s.username,s.ip),duration:3e3}),T.status("online.loginTips",!0,s.username,s.ip)),i(s)}),T.$event(Se.USER_LOGOUT,([s])=>{D.CLIENT_ID!==s.cid&&(T.$emit($.NOTIFY,{title:c("online.logout"),content:c("online.logoutTips",s.username,s.ip),duration:3e3}),T.status("online.logoutTips",!0,s.username,s.ip));const o=t.findIndex(r=>r.cid===s.cid);n(s.cid,"0"),o>-1&&t.splice(o,1)}),T.$event(Se.ONLINE_USERS,([s])=>{s.forEach(o=>{D.CLIENT_ID!==o.cid&&(i(o),o.fileId&&n(o.cid,o.fileId))})}),T.$event(Se.INTO_FILE_ID,([s,o])=>n(s,o)),(s,o)=>{const r=y("magic-avatar-group");return v(),k("div",Vu,[_(r,{users:t,max:9},null,8,["users"]),R("span",null,F(h(c)("online.onlines",t.length)),1)])}}};var zu=q(Gu,[["__scopeId","data-v-0c296fa2"]]),Yu=Object.freeze(Object.defineProperty({__proto__:null,default:zu},Symbol.toStringTag,{value:"Module"}));const qu={class:"magic-status-bar"},Ku=["innerHTML"],Wu=["data-title","onClick"],Xu={__name:"magic-status-bar",props:{config:Object},setup(e){const t=e,a=U(null),n=[{icon:"gitee",title:"Gitee",displayKey:"repo",onClick:()=>window.open("https://gitee.com/ssssssss-team/magic-api")},{icon:"git",title:"Github",displayKey:"repo",onClick:()=>window.open("https://github.com/ssssssss-team/magic-api")},{icon:"qq",title:c("message.joinGroup"),displayKey:"qqGroup",onClick:()=>window.open("https://www.ssssssss.org/magic-api/pages/group/")},{icon:"help",title:c("message.document"),displayKey:"document",onClick:()=>window.open("https://ssssssss.org/magic-api")}],i=_e(()=>{const o=n.filter(r=>t.config.header[r.displayKey]!==!1);return a.value&&a.value.id&&a.value.username&&o.push({icon:"logout",title:a.value.username,onClick:()=>me.confirm(c("message.logout"),c("message.logoutConfirm",a.value.username),()=>Y.sendPost("/logout").success(()=>{a.value=null,D.HEADER_MAGIC_TOKEN_VALUE="unauthorization",D.LOGINED=!1,De.remove(D.STORE.token),T.$emit($.LOGOUT),T.status("message.logoutSuccess")}))}),o}),s=U("");return T.$on($.LOGINED,()=>{T.status("message.getCurrentLoginUser"),Y.send("/user").success(o=>a.value=o)}),T.$on($.STATUS,o=>s.value=o),(o,r)=>{const l=y("magic-online"),u=y("magic-icon");return v(),k("div",qu,[R("div",{class:"message",innerHTML:s.value},null,8,Ku),_(l),R("ul",null,[(v(!0),k(te,null,fe(h(i),(d,g)=>(v(),k("li",{"data-title":d.title,"data-tooltip-direction":"left-top",key:g,onClick:ye(d.onClick,["stop"])},[_(u,{icon:d.icon},null,8,["icon"])],8,Wu))),128))])])}}};var Ju=q(Xu,[["__scopeId","data-v-55e90cbc"]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:Ju},Symbol.toStringTag,{value:"Module"}));const Zu={class:"magic-todo"},e1={key:3},t1={class:"todo"},a1={__name:"magic-todo",setup(e){const t=U(!0),a=[{icon:"refresh",title:c("message.refresh"),onClick(){d()}},{icon:"expand-all",title:c("message.expand"),onClick:()=>Ze(n.value,f=>f.opened=!0)},{icon:"collapse-all",title:c("message.collapse"),onClick:()=>Ze(n.value,f=>f.opened=!1)}],n=U([]),i=oe("resources"),s={},o=f=>{(f.groupId||f.line)&&T.$emit($.OPEN_WITH_ID,f.id)},r=(f,E)=>{let m=f.find(N=>N.id===E);if(!m)for(let N=0;N{let E=[];return f.forEach(m=>{m.line>0?E.push(m):m.folder&&m.children&&(m.children=l(m.children),m.children.length&&E.push(m))}),E},u=oe("service"),d=()=>{n.value=[],t.value=!0,Y.sendGet("/todo").success(f=>{const E=i();E.forEach(N=>s[N.navbar.type]=N.navbar);let m=!1;f.forEach(N=>{for(let C=0;CN.display).map(N=>({folder:!0,icon:N.navbar.icon,name:N.navbar.title,children:N.tree,root:!0}))),Ze(n.value,N=>N.opened=!0)),t.value=!1})};let g=!1;return T.$on($.LOAD_RESOURCES_FINISH,d),pt(()=>{!g&&D.LOGINED&&d(),g=!0}),(f,E)=>{const m=y("magic-panel-toolbar"),N=y("magic-loading"),C=y("magic-icon"),x=y("magic-text-icon"),b=y("magic-tree"),S=y("magic-empty");return v(),k("div",Zu,[_(m,{toolbars:a}),R("div",null,[_(N,{loading:t.value},null,8,["loading"]),n.value.length>0?(v(),V(b,{key:0,data:n.value,onItemClick:o},{folder:w(({item:A})=>[_(C,{icon:A.opened?"arrow-bottom":"arrow-right",onClick:ye(M=>A.opened=!A.opened,["stop"])},null,8,["icon","onClick"]),A.root?(v(),V(C,{key:0,icon:A.icon},null,8,["icon"])):A.icon?(v(),V(x,{key:1,icon:A.icon},null,8,["icon"])):(v(),V(C,{key:2,icon:"list"})),R("label",null,F(A.name),1),A.path?(v(),k("span",e1,"("+F(A.path)+")",1)):X("",!0)]),file:w(({item:A})=>[_(C),_(C,{icon:"todo"}),R("label",t1,F(A.text),1)]),_:1},8,["data"])):(v(),V(S,{key:1,text:h(c)("message.empty","TODO")},null,8,["text"]))])])}}};var n1=q(a1,[["__scopeId","data-v-29308d9b"]]),i1=Object.freeze(Object.defineProperty({__proto__:null,default:n1},Symbol.toStringTag,{value:"Module"}));const s1={class:"magic-toolbar"},o1={class:"magic-toolbar-header"},r1={class:"magic-toolbar-header-buttons"},l1={__name:"magic-toolbar",setup(e){const t=U(null),a=We([{type:"api",title:c("api.title"),icon:"parameter",component:Ue(ee("magic-api-info"))},{id:"response",type:"api",title:c("toolbars.response"),icon:"run",component:Ue(ee("magic-api-response"))},{type:"function",title:c("fn.title"),icon:"parameter",component:Ue(ee("magic-function-info"))},{type:"group-api",title:c("message.group",c("api.name")),icon:"parameter",component:Ue(ee("magic-api-group"))},{id:"debug",type:["api","task"],title:c("toolbars.debug"),icon:"debug-info",component:Ue(ee("magic-debug"))},{id:"log",title:c("toolbars.log"),icon:"log",component:Ue(ee("magic-log"))},{type:"api",title:c("toolbars.global"),icon:"settings",component:Ue(ee("magic-global"))},{id:"todo",title:"TODO",icon:"todo",component:Ue(ee("magic-todo"))},{id:"history",title:c("toolbars.history"),icon:"history",component:Ue(ee("magic-backup"))},{id:"event",title:c("toolbars.event"),icon:"event",component:Ue(ee("magic-event")),style:{float:"right"}}]);D.PLUGINS.filter(r=>r.toolbars&&r.toolbars.length>0).map(r=>r.toolbars).forEach(r=>r.forEach(l=>{a.unshift({id:l.id,type:l.type,icon:l.icon,title:c(l.title),component:Ue(l.component)})}));const n=U({}),i=U({});Ye("opened",n),Ye("info",i);const s=(r,l)=>{a.forEach(u=>u.show=u.type===void 0||(Array.isArray(u.type)?u.type.find(d=>d.type===r):u.type===r)),t.value&&l&&t.value.select(a.findIndex(u=>u.show))};s("");const o=r=>{const l=a.findIndex(u=>u.id===r.id);l>-1&&a.splice(l,1),t.value.select(-1)};return T.$on($.ADD_FOOTER_TOOLBAR,r=>{r.id&&o(r),t.value.select(a.push(r)-1)}),T.$on($.OPEN_EMPTY,()=>s("")),T.$on($.OPEN,(r,l)=>{r.responseBlobValue=null,n.value=r,i.value=r.item,s(r.type,l)}),T.$on($.OPEN_GROUP,r=>{s("group-"+r.type,!0),i.value=r}),T.$on($.SWITCH_TOOLBAR,r=>{const l=a.findIndex(u=>u.id===r);l>-1&&t.value.select(l)}),(r,l)=>{const u=y("magic-icon"),d=y("magic-resizer"),g=y("magic-navbar-item"),f=y("magic-navbar");return v(),k("div",s1,[_(f,{direction:"horizontal",ref_key:"navbar",ref:t,"tooltip-direction":"bottom"},{default:w(()=>[(v(!0),k(te,null,fe(a,(E,m)=>(v(),V(g,mt({key:m},E),{default:w(()=>[_(d,{direction:"y",max:700,min:150,value:250},{default:w(()=>[R("div",o1,[R("label",null,F(E.title),1),R("div",r1,[_(u,{icon:"minimize",size:"14px",title:h(c)("message.hide"),onClick:l[0]||(l[0]=N=>t.value.select(-1))},null,8,["title"]),E.allowClose?(v(),V(u,{key:0,icon:"close",title:h(c)("editor.tab.close"),onClick:N=>o(E)},null,8,["title","onClick"])):X("",!0)])]),(v(),V(ee(E.component),Kn(Wn(E.data)),null,16))]),_:2},1024)]),_:2},1040))),128))]),_:1},512)])}}};var c1=q(l1,[["__scopeId","data-v-68b3ca3b"]]),u1=Object.freeze(Object.defineProperty({__proto__:null,default:c1},Symbol.toStringTag,{value:"Module"}));const d1={class:"magic-function-info"},p1={__name:"magic-function-info",setup(e){const t=oe("info"),a=[{title:c("fn.parameter"),component:ee("magic-function-parameter")},{title:c("fn.description"),component:ee("magic-api-description")}];return(n,i)=>{const s=y("magic-select"),o=y("magic-input"),r=y("magic-navbar-item"),l=y("magic-navbar");return v(),k(te,null,[R("div",d1,[R("form",null,[R("label",null,F(h(c)("fn.returnValue")),1),_(s,{width:"100px",options:n.$FUNCTION_RETURN_TYPES,"default-select":n.$DEFAULT_FUNCTION_RETURN_TYPE,value:h(t).method,"onUpdate:value":i[0]||(i[0]=u=>h(t).method=u)},null,8,["options","default-select","value"]),R("label",null,F(h(c)("fn.form.name")),1),_(o,{value:h(t).name,"onUpdate:value":i[1]||(i[1]=u=>h(t).name=u),placeholder:h(c)("fn.form.placeholder.name"),width:"200px"},null,8,["value","placeholder"]),R("label",null,F(h(c)("fn.form.path")),1),_(o,{value:h(t).path,"onUpdate:value":i[2]||(i[2]=u=>h(t).path=u),placeholder:h(c)("fn.form.placeholder.path"),width:"auto",style:{flex:"1"}},null,8,["value","placeholder"])])]),_(l,{direction:"horizontal",ref:"navbar",style:{flex:"1"},"allow-close":!1},{default:w(()=>[(v(),k(te,null,fe(a,(u,d)=>_(r,{key:d,title:u.title},{default:w(()=>[(v(),V(ee(u.component),{info:h(t)},null,8,["info"]))]),_:2},1032,["title"])),64))]),_:1},512)],64)}}};var _1=q(p1,[["__scopeId","data-v-bc8654ec"]]),h1=Object.freeze(Object.defineProperty({__proto__:null,default:_1},Symbol.toStringTag,{value:"Module"}));const f1={class:"magic-panel-function"},g1={__name:"magic-function-parameter",setup(e){const t=oe("info"),a=U(-1);return(n,i)=>{const s=y("magic-panel-common-toolbar"),o=y("magic-input"),r=y("magic-table-column"),l=y("magic-select"),u=y("magic-table");return v(),k("div",f1,[_(s,{index:a.value,"onUpdate:index":i[0]||(i[0]=d=>a.value=d),value:h(t).parameters},null,8,["index","value"]),_(u,{data:h(t).parameters,border:"",onClickRow:i[1]||(i[1]=d=>a.value=d)},{default:w(()=>[_(r,{title:h(c)("message.name"),width:"20%"},{default:w(({row:d})=>[_(o,{value:d.name,"onUpdate:value":g=>d.name=g,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"]),_(r,{title:h(c)("message.parameterType"),width:"20%"},{default:w(({row:d})=>[_(l,{options:n.$FUNCTION_RETURN_TYPES,value:d.type,"onUpdate:value":g=>d.type=g,"default-select":n.$DEFAULT_FUNCTION_RETURN_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1},8,["title"]),_(r,{title:h(c)("message.description"),flex:"1"},{default:w(({row:d})=>[_(o,{value:d.description,"onUpdate:value":g=>d.description=g,border:!1},null,8,["value","onUpdate:value"])]),_:1},8,["title"])]),_:1},8,["data"])])}}};var m1=Object.freeze(Object.defineProperty({__proto__:null,default:g1},Symbol.toStringTag,{value:"Module"}));const v1={__name:"magic-export",setup(e){const t=U(!1),a=U([]);T.$on($.DO_DOWNLOAD,()=>t.value=!0);const n=()=>{a.value.length?Y.sendJson("/download",a.value,{method:"post",headers:{"Content-Type":"application/json"},transformRequest:[],responseType:"blob"}).success(i=>{Da(i,"magic-api.zip"),T.status("message.exported"),t.value=!1}):me.alert(c("message.exportNoneSelect"))};return(i,s)=>{const o=y("magic-resource-choose"),r=y("magic-button"),l=y("magic-button-group"),u=y("magic-dialog");return v(),V(u,{title:h(c)("message.export"),value:t.value,"onUpdate:value":s[5]||(s[5]=d=>t.value=d),shade:!1,padding:"0",width:"480px",top:"60px",overflow:"hidden"},{default:w(()=>[_(o,{ref:"resource",value:a.value,"onUpdate:value":s[0]||(s[0]=d=>a.value=d)},null,8,["value"]),_(l,{align:"right",style:{margin:"5px 0","margin-right":"5px"}},{default:w(()=>[_(r,{value:h(c)("message.expand"),onOnClick:s[1]||(s[1]=d=>i.$refs.resource.expand(!0))},null,8,["value"]),_(r,{value:h(c)("message.collapse"),onOnClick:s[2]||(s[2]=d=>i.$refs.resource.expand(!1))},null,8,["value"]),_(r,{value:h(c)("message.selectAll"),onOnClick:s[3]||(s[3]=d=>i.$refs.resource.selectAll(!0))},null,8,["value"]),_(r,{value:h(c)("message.deselectAll"),onOnClick:s[4]||(s[4]=d=>i.$refs.resource.selectAll(!1))},null,8,["value"]),_(r,{type:"active",value:h(c)("message.export"),onOnClick:n},null,8,["value"])]),_:1})]),_:1},8,["title","value"])}}};var b1=q(v1,[["__scopeId","data-v-097eba83"]]),E1=Object.freeze(Object.defineProperty({__proto__:null,default:b1},Symbol.toStringTag,{value:"Module"}));const y1={class:"magic-header"},T1={class:"magic-logo"},S1=["title"],x1=["title"],O1={class:"magic-header-title"},R1=["data-title","onClick"],A1={class:"magic-skin-selector"},C1=["onClick"],I1={class:"magic-locale-selector"},k1=["onClick"],L1={__name:"magic-header",props:{title:{type:String,default:"magic-api"},themeStyle:Object,header:Object},setup(e){const t=e,a={"../../../scripts/i18n/en.js":()=>Wa(()=>Promise.resolve().then(function(){return hi}),void 0),"../../../scripts/i18n/zh-cn.js":()=>Wa(()=>Promise.resolve().then(function(){return fi}),void 0)},n=We([]);for(let E in a)a[E]().then(m=>{n.push({id:E.replace(/(.*?i18n\/)(.*)(\.js)/g,"$2"),name:m.default.name})});const i=D.MAGIC_API_VERSION_TEXT,s=U(!1),o=U(!1),r=U({}),l=U("");T.$on($.OPEN_EMPTY,()=>{l.value="",r.value={}}),T.$on($.OPEN,E=>{r.value=E,l.value=E.path(),et(E,()=>{r.value===E&&(l.value=E.path())})});const u=_e(()=>[{name:`${c("message.run")}(Ctrl + Q)`,icon:"run",disabled:()=>r.value.runnable!==!0||r.value.running===!0,onClick:()=>T.$emit($.DO_TEST)},{name:`${c("message.save")}(Ctrl + S)`,icon:"save",onClick:()=>T.$emit($.DO_SAVE,!0)},{name:`${c("message.search")}(Ctrl + Shift + F)`,icon:"search",onClick:()=>T.$emit($.DO_SEARCH)},{name:c("message.upload"),icon:"upload",onClick:()=>T.$emit($.DO_UPLOAD)},{name:c("message.export"),icon:"download",onClick:()=>T.$emit($.DO_DOWNLOAD)},{name:c("message.push"),icon:"push",onClick:()=>T.$emit($.DO_PUSH)},{name:c("message.skin"),displayKey:"skin",icon:"skin",onClick:()=>{s.value=!s.value,o.value=!1}},{name:c("message.i18n"),icon:"i18n",onClick:()=>{o.value=!o.value,s.value=!1}},{name:c("message.reload"),icon:"refresh",onClick:()=>T.$emit($.RELOAD_RESOURCES)}].filter(E=>t.header[E.displayKey]!==!1)),d=E=>{D.THEME=E,T.$emit($.SWITCH_THEME,E),T.status("message.switchSkin",!0,E),$e.setTheme(E),Object.keys(t.themeStyle).forEach(N=>t.themeStyle[N]=void 0);let m=Gt[E];De.set(D.STORE.theme,E),Object.keys(m).forEach(N=>t.themeStyle[`--${N}`]=m[N]),s.value=!1},g=De.get(D.STORE.theme);Gt[g]?d(g):d(D.THEME);const f=({id:E,name:m})=>{o.value=!1,De.set("locale",E),me.confirm(c("message.tips"),c("message.switchLocale",m),()=>{location.reload()})};return(E,m)=>{const N=y("magic-icon");return v(),k(te,null,[R("div",y1,[R("div",T1,[R("label",{title:e.title},F(e.title),9,S1),R("label",{title:h(i)},F(h(i)),9,x1)]),R("div",O1,F(l.value),1),R("ul",null,[(v(!0),k(te,null,fe(h(u),(C,x)=>(v(),k("li",{key:x,"data-title":C.name,"data-tooltip-direction":"left-bottom",onClick:ye(b=>C.disabled!==!0&&C.onClick(),["stop"]),class:ve({disabled:C.disabled&&C.disabled()===!0})},[_(N,{icon:C.icon},null,8,["icon"])],10,R1))),128))])]),gt(R("div",A1,[R("ul",null,[(v(!0),k(te,null,fe(Object.keys(h(Gt)),C=>(v(),k("li",{key:"theme_"+C,onClick:x=>d(C)},F(C),9,C1))),128))])],512),[[Mt,s.value]]),gt(R("div",I1,[R("ul",null,[(v(!0),k(te,null,fe(n,C=>(v(),k("li",{key:"locale_"+C.id,onClick:x=>f(C)},F(C.name),9,k1))),128))])],512),[[Mt,o.value]])],64)}}};var N1=q(L1,[["__scopeId","data-v-1e7d7426"]]),w1=Object.freeze(Object.defineProperty({__proto__:null,default:N1},Symbol.toStringTag,{value:"Module"}));const D1={class:"magic-push-form"},M1={__name:"magic-push",setup(e){const t=U(!1),a=U([]),n=U("http://host:port/_magic-api-sync"),i=U("123456789");T.$on($.DO_PUSH,()=>t.value=!0);const s=r=>{Y.sendJson("/push",a.value,{method:"post",headers:{"magic-push-target":n.value,"magic-push-secret-key":i.value,"magic-push-mode":r,"Content-Type":"application/json"},transformRequest:[]}).success(()=>{const l=c(r==="full"?"push.full":"push.increment");T.status("push.success",!0,l),t.value=!1,T.$emit($.LOAD_RESOURCES)})},o=r=>{a.value.length?r==="full"?me.confirm(c("message.push"),c("message.pushWarning"),()=>s(r)):s(r):me.alert(c("message.pushNoneSelect"))};return(r,l)=>{const u=y("magic-resource-choose"),d=y("magic-input"),g=y("magic-button"),f=y("magic-button-group"),E=y("magic-dialog");return v(),V(E,{title:h(c)("message.push"),value:t.value,"onUpdate:value":l[7]||(l[7]=m=>t.value=m),shade:!1,padding:"0",width:"450px",top:"60px",overflow:"hidden"},{default:w(()=>[_(u,{ref:"resource",value:a.value,"onUpdate:value":l[0]||(l[0]=m=>a.value=m)},null,8,["value"]),R("div",D1,[R("div",null,[R("label",null,F(h(c)("message.remote"))+"\uFF1A",1),_(d,{value:n.value,"onUpdate:value":l[1]||(l[1]=m=>n.value=m)},null,8,["value"])]),R("div",null,[R("label",null,F(h(c)("message.secret"))+"\uFF1A",1),_(d,{value:i.value,"onUpdate:value":l[2]||(l[2]=m=>i.value=m),type:"password"},null,8,["value"])])]),_(f,{align:"right",style:{margin:"5px 0","margin-right":"5px"}},{default:w(()=>[_(g,{value:h(c)("message.selectAll"),onOnClick:l[3]||(l[3]=m=>r.$refs.resource.selectAll(!0))},null,8,["value"]),_(g,{value:h(c)("message.deselectAll"),onOnClick:l[4]||(l[4]=m=>r.$refs.resource.selectAll(!1))},null,8,["value"]),_(g,{value:h(c)("push.increment"),onOnClick:l[5]||(l[5]=m=>o("increment")),type:"active"},null,8,["value"]),_(g,{value:h(c)("push.full"),onOnClick:l[6]||(l[6]=m=>o("full"))},null,8,["value"])]),_:1})]),_:1},8,["title","value"])}}};var P1=q(M1,[["__scopeId","data-v-440447fe"]]),U1=Object.freeze(Object.defineProperty({__proto__:null,default:P1},Symbol.toStringTag,{value:"Module"}));const $1={class:"magic-search-result"},F1=["onClick","onDblclick"],B1=["innerHTML"],H1={class:"name"},j1=["textContent"],V1={class:"display-text"},G1={__name:"magic-search",setup(e){const t=U(""),a=U(!1),n=oe("findResource"),i=oe("service"),s=U([]),o=U({}),r=_e(()=>o.value.name+(o.value.path?`(${o.value.path})`:"")),l=C=>{C.script||Y.sendGet(`/resource/file/${C.id}`).success(x=>{C.script=x.script})},u=(C,x)=>{o.value=C,l(C),x&&(T.$emit($.OPEN_WITH_ID,C.id),a.value=!1,s.value=[],t.value="")};T.$on($.DO_SEARCH,()=>{s.value=[],t.value="",a.value=!a.value});let d=null;const g=C=>{const x=[...C.childNodes],b=[];for(;x.length;){const S=x.shift();S.nodeType===S.TEXT_NODE?b.push(S):x.unshift(...S.childNodes)}return b},f=C=>{let x=0;return C.map(b=>{let S=x,A=x+b.wholeText.length;return x=A,{text:b.wholeText,startIdx:S,endIdx:A}})},E=(C,x)=>{const b=[..."[]()?.+*^${}:"].reduce((A,M)=>(A[M]=!0,A),{});x=x.split("").map(A=>b[A]?`\\${A}`:A).join("[\\s\\n]*");const S=new RegExp(x,"gmi");return[...C.matchAll(S)]},m=(C,x,b)=>{for(let S=b.length-1;S>=0;S--){const A=b[S],M=A.index,I=M+A[0].length;for(let H=0;H=I)break;let se=C[H];const J=Math.max(0,M-j),Ee=Math.min(ie,I)-j-J;J>0&&(se=se.splitText(J)),Ee{if(!x)return C;const b=document.createElement("div");b.innerHTML=C;const S=g(b),A=f(S),M=A.map(({text:H})=>H).join(""),I=E(M,x);return m(S,A,I),b.innerHTML};return et(t,C=>{const x=C.trim();clearTimeout(d),x&&(d=setTimeout(()=>{Y.send("/search",{keyword:x},{method:"POST"}).success(async b=>{const S=[];for(let A=0;A0&&(o.value=S[0],l(o.value)),s.value=S})},600))}),(C,x)=>{const b=y("magic-input"),S=y("magic-text-icon"),A=y("magic-monaco-editor"),M=y("magic-dialog");return v(),V(M,{title:h(c)("message.search"),value:a.value,"onUpdate:value":x[1]||(x[1]=I=>a.value=I),shade:!1,padding:"0",width:"700px",top:"60px"},{default:w(()=>[_(b,{value:t.value,"onUpdate:value":x[0]||(x[0]=I=>t.value=I),placeholder:h(c)("message.searchText")},null,8,["value","placeholder"]),s.value.length>0?(v(),k(te,{key:0},[R("div",$1,[(v(!0),k(te,null,fe(s.value,(I,H)=>(v(),k("div",{key:H,class:ve(["magic-search-result-item",{selected:o.value===I}]),onClick:L=>u(I),onDblclick:L=>u(I,!0)},[R("div",{class:"label",innerHTML:I.text},null,8,B1),R("div",H1,[_(S,{icon:I.icon},null,8,["icon"]),pe(F(I.name),1)]),R("div",{class:"line",textContent:F(I.line)},null,8,j1)],42,F1))),128))]),R("div",V1,[_(S,{icon:o.value.icon},null,8,["icon"]),pe(F(h(r)),1)]),_(A,{readonly:"",value:o.value.script,language:o.value.language,style:{width:"100%",height:"300px"},matches:t.value},null,8,["value","language","matches"])],64)):X("",!0)]),_:1},8,["title","value"])}}};var z1=q(G1,[["__scopeId","data-v-4bbc2d10"]]),Y1=Object.freeze(Object.defineProperty({__proto__:null,default:z1},Symbol.toStringTag,{value:"Module"}));const q1={__name:"magic-upload",setup(e){const t=U(!1),a=U(null),n=i=>{if(a.value){const s=new FormData;s.append("file",a.value,a.value.name),s.append("mode",i);const o=()=>{Y.send("/upload",s,{method:"post",headers:{"Content-Type":"multipart/form-data"}}).success(r=>{const l=c(i==="full"?"upload.full":"upload.increment");r?(T.status("upload.success",!0,l),t.value=!1,T.$emit($.LOAD_RESOURCES)):T.status("upload.failed",!1,l)})};i==="full"?me.confirm(c("message.upload"),c("message.uploadWarning"),o):o()}};return T.$on($.DO_UPLOAD,()=>t.value=!0),(i,s)=>{const o=y("magic-file"),r=y("magic-button"),l=y("magic-button-group"),u=y("magic-dialog");return v(),V(u,{title:h(c)("message.upload"),value:t.value,"onUpdate:value":s[3]||(s[3]=d=>t.value=d)},{default:w(()=>[_(o,{value:a.value,"onUpdate:value":s[0]||(s[0]=d=>a.value=d),accept:"application/x-zip-compressed"},null,8,["value"]),_(l,{align:"right",style:{"margin-top":"5px"}},{default:w(()=>[_(r,{value:h(c)("upload.increment"),type:"active",onClick:s[1]||(s[1]=d=>n("increment"))},null,8,["value"]),_(r,{value:h(c)("upload.full"),onClick:s[2]||(s[2]=d=>n("full"))},null,8,["value"])]),_:1})]),_:1},8,["title","value"])}}};var K1=Object.freeze(Object.defineProperty({__proto__:null,default:q1},Symbol.toStringTag,{value:"Module"}));const W1={class:"magic-data-resource"},X1={class:"magic-data-resource-header"},J1=["title","onClick"],Q1={key:1},Z1=["onContextmenu"],ed={__name:"magic-data-resource",props:{type:String,title:String,data:Array},setup(e){const t=e,a=ee(`magic-datasource-${t.type}`),n=U(!1),i=U(""),s=U({}),o=U(""),r=U(""),l=U(!0),u=_e(()=>t.data&&t.data.length>0&&t.data[0].children&&t.data[0].children.filter(S=>S.name.indexOf(o.value)>-1||S.key.indexOf(o.value)>-1)||[]),d=oe("service")[t.type],g=[{name:c("message.createDataSource",t.title),icon:"plus",onClick:()=>{i.value=c("message.createDataSource",t.title),r.value=c("message.create"),s.value={},n.value=!0,l.value=!1}}],f=()=>{d.doTest(s.value)},{proxy:E}=bt(),m=(S,A,M)=>{S.groupId=`${t.type}:0`,Y.sendJson(`/resource/file/${t.type}/save`,S).success(I=>{if(I){S.id!==I&&T.loading(3),S.id=I,T.status(A+"Success",!0,M),t.data[0].children=t.data[0].children||[];const H=t.data[0].children.find(L=>L.id===S.id);H?Object.keys(S).forEach(L=>H[L]=S[L]):t.data[0].children.push(S),n.value=!1}else T.status(A+"Failed",!1,M),E.$alert(c(A+"Failed",M))})},N=()=>{const S={...s.value};m(S,"message.save",`${t.title}\u300C${C(S)}\u300D`)},C=S=>`${S.name}(${S.key})`,x=S=>{const A=t.data[0].children.findIndex(M=>M===S);A>-1&&t.data[0].children.splice(A,1)},b=(S,A)=>{const M=[];S.id&&([{label:c("message.update"),icon:"update",divided:!0,onClick:()=>{l.value=!0,i.value=c("message.updateTips",t.title),r.value=c("message.update"),n.value=!0,T.status("message.getDetail",`${t.title}\u300C${C(S)}\u300D`),Y.sendGet(`/resource/file/${S.id}`).success(I=>s.value=I).end(()=>{l.value=!1})}},{label:c("resource.contextmenu.delete"),icon:"delete",onClick:()=>{const I=`${t.title}\u300C${C(S)}\u300D`;E.$confirm(c("message.deleteTips",t.title),c("message.deleteConfirm",I),()=>{Y.send("/resource/delete",{id:S.id}).success(H=>{T.status(H?"message.deleteSuccess":"message.deleteFailed",H,I),H?x(S):E.$alert(H?"message.deleteSuccess":"message.deleteFailed",I)})})}},{label:c("message.copy"),icon:"copy",divided:!0,onClick:()=>{Y.send(`/resource/file/${S.id}`).success(I=>{I.id=void 0,I.name=I.name+`(${c("message.copy")})`,I.key=I.key+"_copy",m(I,"datasource.copy",`${t.title}\u300C${C(I)}\u300D`)})}}].forEach(I=>M.push(I)),S.lock===D.LOCKED?M.push({label:c("resource.contextmenu.unlock"),icon:"unlock",onClick:()=>Y.sendPost("/resource/unlock",{id:S.id}).success(I=>{T.status(I?"message.unlockSuccess":"message.unlockFailed",I,`${t.title}\u300C${C(S)}\u300D`),I&&(S.lock=D.UNLOCK)})}):M.push({label:c("resource.contextmenu.lock"),icon:"lock",onClick:()=>Y.sendPost("/resource/lock",{id:S.id}).success(I=>{T.status(I?"message.lockSuccess":"message.lockFailed",I,`${t.title}\u300C${C(S)}\u300D`),I&&(S.lock=D.LOCKED)})})),D.PLUGINS.forEach(I=>{if(I.contextmenu&&typeof I.contextmenu=="function"){const H=I.contextmenu({...S,menuType:"datasource"});H&&H.length&&H.forEach(L=>M.push(L))}}),M.length&&E.$contextmenu({menus:M,event:A})};return(S,A)=>{const M=y("magic-icon"),I=y("magic-input"),H=y("magic-empty"),L=y("magic-button"),j=y("magic-button-group"),ie=y("magic-loading"),se=y("magic-dialog");return v(),k(te,null,[R("div",W1,[R("div",X1,[R("ul",null,[(v(),k(te,null,fe(g,(J,Ee)=>(v(),k(te,{key:Ee},[!J.show||J.show()?(v(),k("li",{key:0,title:J.name||"",onClick:xe=>J.onClick&&J.onClick(),class:ve({separator:J.separator})},[J.separator?X("",!0):(v(),V(M,{key:0,icon:J.icon},null,8,["icon"]))],10,J1)):X("",!0)],64))),64))]),_(I,{value:o.value,"onUpdate:value":A[0]||(A[0]=J=>o.value=J),placeholder:h(c)("message.searchText"),width:"100%"},null,8,["value","placeholder"]),_(M,{icon:"search",size:"14px"})]),h(u).length===0?(v(),V(H,{key:0,text:h(c)("message.empty",e.title)},null,8,["text"])):(v(),k("ul",Q1,[(v(!0),k(te,null,fe(h(u),(J,Ee)=>(v(),k("li",{key:Ee,onContextmenu:ye(xe=>b(J,xe),["prevent"])},[_(M,{icon:"datasource"}),R("label",null,F(J.name||h(c)("datasource.primary")),1),R("span",null,"("+F(J.key||"default")+")",1),J.lock==="1"?(v(),V(M,{key:0,icon:"lock"})):X("",!0)],40,Z1))),128))]))]),_(se,{value:n.value,"onUpdate:value":A[4]||(A[4]=J=>n.value=J),title:i.value,width:"550px"},{default:w(()=>[_(ie,{loading:l.value,style:{"min-height":"200px"}},{default:w(()=>[(v(),V(ee(h(a)),{info:s.value},null,8,["info"])),_(j,{align:"right",style:{padding:"5px 0"}},{default:w(()=>[_(L,{value:r.value,type:"active",onOnClick:A[1]||(A[1]=J=>N())},null,8,["value"]),_(L,{value:h(c)("datasource.test"),onOnClick:A[2]||(A[2]=J=>f())},null,8,["value"]),_(L,{value:h(c)("message.cancel"),onOnClick:A[3]||(A[3]=J=>n.value=!1)},null,8,["value"])]),_:1})]),_:1},8,["loading"])]),_:1},8,["value","title"])],64)}}};var td=q(ed,[["__scopeId","data-v-4f1250a4"]]),ad=Object.freeze(Object.defineProperty({__proto__:null,default:td},Symbol.toStringTag,{value:"Module"}));const Pn=e=>(Aa("data-v-cbcc40fa"),e=e(),Ca(),e),nd={class:"magic-login"},id={class:"magic-login-box"},sd=Pn(()=>R("div",{class:"magic-login-logo"},null,-1)),od={class:"magic-login-text"},rd={key:0},ld={key:0,class:"magic-login-row error"},cd={class:"magic-login-row"},ud={class:"magic-login-row"},dd={class:"magic-login-row"},pd={class:"magic-login-copyright"},_d=Pn(()=>R("a",{href:"https://ssssssss.org.cn",target:"_blank"},"ssssssss.org.cn",-1)),hd={__name:"magic-login",props:{value:Boolean,error:String},emits:["update:value","update:error"],setup(e,{emit:t}){const a=U(""),n=U(""),i=()=>{a.value&&n.value&&(t("update:error",null),Y.sendPost("/login",{username:a.value,password:n.value}).success((s,o)=>{s&&(t("update:value",!1),D.HEADER_MAGIC_TOKEN_VALUE=o.headers[D.HEADER_MAGIC_TOKEN],De.set(D.STORE.token,D.HEADER_MAGIC_TOKEN_VALUE),T.$emit($.LOGINED),a.value="",n.value="")}).exception((s,o)=>{s!=401&&(o=translateCode(s,o)),t("update:error",o)}).error((s,o,r)=>{if(r){let l="";r.response?l=JSON.stringify(r.response.data||"")||c("code.invalid",r.response.status):l=r.message,t("update:error",l)}}))};return(s,o)=>{const r=y("magic-icon"),l=y("magic-input"),u=y("magic-button");return v(),k("div",nd,[R("div",id,[sd,R("div",od,[pe("Magic-API "),h(D).MAGIC_API_VERSION_TEXT?(v(),k("span",rd,"v"+F(h(D).MAGIC_API_VERSION_TEXT),1)):X("",!0)]),e.error?(v(),k("div",ld,[_(r,{icon:"error"}),R("span",null,F(e.error),1)])):X("",!0),R("div",cd,[_(r,{icon:"user"}),_(l,{onEnter:i,value:a.value,"onUpdate:value":o[0]||(o[0]=d=>a.value=d),placeholder:h(c)("message.username")},null,8,["value","placeholder"])]),R("div",ud,[_(r,{icon:"password"}),_(l,{onEnter:i,value:n.value,"onUpdate:value":o[1]||(o[1]=d=>n.value=d),type:"password",placeholder:h(c)("message.password")},null,8,["value","placeholder"])]),R("div",dd,[_(u,{value:h(c)("message.login"),onOnClick:i},null,8,["value"])])]),R("div",pd,[pe("Copyright \xA9 2020-"+F(new Date().getYear()+1900)+" ",1),_d,pe(" All rights reserved.")])])}}};var fd=q(hd,[["__scopeId","data-v-cbcc40fa"]]),gd=Object.freeze(Object.defineProperty({__proto__:null,default:fd},Symbol.toStringTag,{value:"Module"}));function md(e,t){T.$emit($.SWITCH_TOOLBAR,"log"),t.headers[D.HEADER_REQUEST_CLIENT_ID]=D.CLIENT_ID,t.headers[D.HEADER_REQUEST_SCRIPT_ID]=e.item.id,t.headers[D.HEADER_MAGIC_TOKEN]=D.HEADER_MAGIC_TOKEN_VALUE,t.headers[D.HEADER_REQUEST_BREAKPOINTS]=(e.decorations||[]).filter(s=>s.options.linesDecorationsClassName==="breakpoints").map(s=>s.range.startLineNumber).join(","),t.responseType="blob",t.validateStatus=()=>!0;let a=0;t.transformResponse=[function(s,o){return a=s.size,o["content-disposition"]?new Promise(r=>r(s)):new Promise(r=>{const l=new FileReader;l.readAsText(s),l.onload=function(){try{r(JSON.stringify(JSON.parse(this.result),null,4))}catch{r(s)}}})}];const n=e.path();T.status("api.test.begin",!0,n);const i=new Date().getTime();Y.execute(t).then(s=>s.data.then(o=>{if(T.status("api.test.success",!0,n,s.status,qi(a),new Date().getTime()-i),e.running=!1,e.responseBlob=o instanceof Blob)e.responseBlobValue=o,e.item.responseBody=null,e.item.responseBodyDefinition=null,e.responseBodyTree=null;else{e.item.responseBody=o;let r=Nn(e.item.responseBody,e.item.responseBodyDefinition);Ma(e.item.responseBodyDefinition,r)&&T.$emit($.NOTIFY,{title:c("message.tips"),id:"responseBodyStructure",icon:"info",content:c("api.structure.content","ResponseBody"),buttons:[{title:c("api.structure.ok"),onClick:()=>{e.item.responseBodyDefinition=r,e.responseBodyTree=Qt(r)}},{title:c("message.cancel"),onClick:()=>{}}]})}e.responseHeaders=s.headers,be(()=>T.$emit($.SWITCH_TOOLBAR,"response"))})).catch(s=>{T.status("api.test.requestError",!1,n),e.running=!1,Y.processError(s)})}function vd(e){e.running=!0;const t=e.item,a={baseURL:D.SERVER_URL,url:e.requestPath(),method:t.method,headers:{},responseType:"json",withCredentials:!0},n=s=>s.filter(o=>o.value&&o.value.trim()).forEach(o=>a.url=a.url.replace(new RegExp(`\\{${o.name}}`,"g"),o.value.trim()));if(e.getGroups().filter(s=>s.paths&&s.paths.length>0).map(s=>s.paths).forEach(s=>n(s)),n(t.paths||[]),a.url.indexOf("{")>-1){me.alert(c("api.test.missPath")),e.running=!1;return}D.GLOBAL.headers.filter(s=>s.name).forEach(s=>a.headers[s.name]=s.value),t.headers.filter(s=>s.name).forEach(s=>a.headers[s.name]=s.value);const i={};if(D.GLOBAL.parameters.filter(s=>s.name).forEach(s=>i[s.name]=s.value),t.parameters.filter(s=>s.name).forEach(s=>i[s.name]=s.value),Object.values(i).some(s=>s instanceof FileList||s instanceof File)){a.headers["Content-Type"]="multipart/form-data";const s=new FormData;Object.keys(i).forEach(o=>{let r=i[o];r instanceof FileList?Array.from(r).forEach(l=>s.append(o,l,l.name)):r instanceof File?s.append(o,r,r.name):s.append(o,r)}),a.data=s}else{a.headers["Content-Type"]="application/x-www-form-urlencoded",a.method!=="POST"||t.requestBody?a.params=i:a.data=i;try{if(t.requestBody){const s=JSON.parse(t.requestBody);(Array.isArray(s)&&s.length>0||typeof s=="object"&&Object.keys(s).length>0)&&(a.params=i,a.data=t.requestBody,a.headers["Content-Type"]="application/json",a.transformRequest=[])}}catch{e.running=!1,me.alert(c("api.test.requestBodyError"))}}md(e,a)}var bd={doTest:vd,getIcon:e=>e.method||"GET",runnable:!0,requirePath:!0,name:c("api.name"),merge:e=>(e.method=e.method||D.DEFAULT_REQUEST_METHOD,e.parameters=e.parameters||[],e.headers=e.headers||[],e.paths=e.paths||[],e.options=e.options||[],e),processSave:e=>{const t=D.config.persistenceResponseBody!==!1;return{id:e.id,name:e.name,path:e.path,groupId:e.groupId,lock:e.lock,method:e.method,description:e.description,createBy:e.createBy,createDate:e.createDate,properties:e.properties,script:e.script,responseBody:t&&e.responseBody||void 0,responseBodyDefinition:t&&e.responseBodyDefinition||void 0,requestBody:e.requestBody,requestBodyDefinition:e.requestBodyDefinition,parameters:e.parameters.filter(a=>a.name),headers:e.headers.filter(a=>a.name),paths:e.paths.filter(a=>a.name),options:e.options.filter(a=>a.name)}}},Ed={getIcon:e=>"function",name:c("fn.name"),runnable:!1,requirePath:!0,merge:e=>(e.parameters=e.parameters||[],e)};let xa;ae.setExtensionAttribute("org.ssssssss.magicapi.modules.db.SQLModule",()=>{var e;return xa&&(((e=xa("datasource")[0])==null?void 0:e.children)||[]).filter(t=>t.key).map(t=>({name:t.key,type:"org.ssssssss.magicapi.modules.db.SQLModule",comment:t.name}))||[]});var yd={injectResources:e=>xa=e,requireScript:!1,doTest:e=>{Y.sendJson("/datasource/jdbc/test",e).success(t=>{t==="ok"?me.alert(c("datasource.connected"),c("datasource.test")):me.alert(c("datasource.connectFailed",t),c("datasource.test"))})}};const Td={class:"magic-main"},Sd={class:"magic-main-body-wrapper"},xd={class:"magic-main-body"},Od={ref:"mrl",class:"magic-navbar magic-navbar__vertical"},Rd={ref:"mrr",class:"magic-navbar magic-navbar__vertical reverse"},Ad={__name:"magic-main",emits:["onLoad"],setup(e,{expose:t,emit:a}){const n=U(!1),i=U({}),s=U(!0),o=U(null),r=(b,S,A)=>{for(let M=0,I=b.length;M{const S=Object.entries(i.value);for(let A=0,M=S.length;A0)return{item:I[0],type:H[0],name:it("/"+I.reverse().map(L=>L.name).join("/")),path:it("/"+I.reverse().map(L=>L.path||"").join("/"))}}};Ye("findResource",l);const u=[{type:"api",title:c("api.name"),icon:"api"},{type:"function",title:c("fn.name"),icon:"function"}],d={api:bd,function:Ed,datasource:yd};D.PLUGINS.filter(b=>b.resource&&b.resource.length>0).map(b=>b.resource).forEach(b=>b.forEach(S=>{u.push({type:S.type,icon:S.icon,title:c(S.title)}),S.service&&(d[S.type]=S.service)})),Ye("service",d),u.map(b=>b.type).forEach(b=>i.value[b]=[]);const g=[{type:"datasource",title:c("datasource.title"),icon:"datasource",name:c("datasource.name")}];D.PLUGINS.filter(b=>b.datasources&&b.datasources.length>0).map(b=>b.datasources).forEach(b=>b.forEach(S=>{g.push({type:S.type,icon:S.icon,title:S.title,name:S.name})})),g.map(b=>b.type).forEach(b=>i.value[b]=[]),Ye("resources",()=>{const b=[...u,...g],S=A=>A.length===1&&A[0].id.endsWith(":0")?A[0].children:A;return b.map(A=>({key:A.type,navbar:A,tree:S(JSON.parse(JSON.stringify(i.value[A.type]||[])))}))}),Object.values(d).forEach(b=>b.injectResources&&b.injectResources(S=>i.value[S])),be(()=>n.value=!0);const f=b=>({...b.node,folder:b.node.parentId!==void 0,opened:b.node.parentId!==void 0&&D.DEFAULT_EXPAND===!0,children:b.children&&b.children.length?b.children.map(S=>f(S)):void 0}),E=(b,S)=>{var M;s.value=!0,i.value={};const A=b?((M=u.find(I=>I.type===b)||g.find(I=>I.type===b))==null?void 0:M.title)||"":c("message.all");T.status("message.getResource",!0,A),Y.send("/resource").success(I=>{[...u,...g].filter(H=>!b||H.type===b).forEach(H=>{var L,j;i.value[H.type]=((j=(L=I[H.type])==null?void 0:L.children)==null?void 0:j.map(ie=>f(ie)))||[]}),s.value=!1,T.status("message.getResourceFinish",!0,A),be(()=>S())})};T.$on($.RELOAD_RESOURCES,()=>{s.value=!0,Y.sendGet("/reload").success(()=>{T.status("message.reloadResourceSuccess"),E(null,()=>T.$emit($.RELOAD_RESOURCES_FINISH))}).end(()=>s.value=!1)});const m=b=>E(b,()=>T.$emit($.LOAD_RESOURCES_FINISH,b));T.$on($.LOAD_RESOURCES,m),T.$on($.RELOAD_RESOURCES_FINISH,m);const N=b=>{let S;return Object.values(i.value).some(A=>{const M=[];if(r(A,b,M)){S=M[0];const I=u.findIndex(H=>H.type===M[M.length-1].type);return o.value&&o.value.select(I),!0}return!1}),S};T.$on($.SELECT_NAVBAR_BY_ITEM,N),T.$on($.OPEN_WITH_ID,b=>{const S=N(b);S&&T.$emit($.OPEN_ITEM,S)}),T.$on($.LOGOUT,()=>i.value={}),t({loadResources:m}),pt(()=>a("onLoad"));let C=0;const x=()=>{if(++C%u.length===0)try{JSON.parse(De.get(D.RECENT_OPENED_TAB)||"[]").forEach(b=>{T.$emit($.OPEN_WITH_ID,b)})}catch(b){console.error(b)}};return T.$on($.REFRESH_RESOURCE,b=>{const S=l(b);S&&Y.sendGet(`/resource/file/${b}`).success(A=>{Object.keys(A).forEach(M=>S.item[M]=A[M])})}),(b,S)=>{const A=y("magic-resource"),M=y("magic-loading"),I=y("magic-resizer"),H=y("magic-navbar-item"),L=y("magic-navbar"),j=y("magic-script-editor"),ie=y("magic-toolbar"),se=y("magic-data-resource"),J=y("magic-search"),Ee=y("magic-export"),xe=y("magic-upload"),Xe=y("magic-push"),St=y("magic-recent-opened");return v(),k("div",Td,[n.value?(v(),V(L,{key:0,direction:"vertical",to:b.$refs.mrl,ref_key:"mnl",ref:o,spliter:!0},{default:w(()=>[(v(),k(te,null,fe(u,(Ne,ke)=>_(H,mt({key:ke},Ne),{default:w(()=>[_(I,{max:750,min:270,direction:"x"},{default:w(()=>[_(M,{loading:s.value},{default:w(()=>[_(A,mt(Ne,{data:i.value[Ne.type],onClose:S[0]||(S[0]=$a=>b.$refs.mnl.select(-1)),onOnLoad:x,"tooltip-direction":"left-bottom"}),null,16,["data"])]),_:2},1032,["loading"])]),_:2},1024)]),_:2},1040)),64))]),_:1},8,["to"])):X("",!0),R("div",Sd,[R("div",xd,[R("div",Od,null,512),_(j),R("div",Rd,null,512)]),_(ie)]),_(L,{reverse:!0,"default-select":-1,direction:"vertical",to:b.$refs.mrr,spliter:!0,"tooltip-direction":"left"},{default:w(()=>[(v(),k(te,null,fe(g,(Ne,ke)=>_(H,{key:ke,title:Ne.title,icon:Ne.icon},{default:w(()=>[n.value?(v(),V(I,{key:0,max:420,min:140,value:200,direction:"x",reverse:!0},{default:w(()=>[_(M,{loading:s.value},{default:w(()=>[_(se,{type:Ne.type,title:Ne.name,data:i.value[Ne.type]},null,8,["type","title","data"])]),_:2},1032,["loading"])]),_:2},1024)):X("",!0)]),_:2},1032,["title","icon"])),64))]),_:1},8,["to"]),_(J),_(Ee),_(xe),_(Xe),_(St)])}}};var Cd=q(Ad,[["__scopeId","data-v-478ba993"]]),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Cd},Symbol.toStringTag,{value:"Module"}));const kd={class:"magic-recent-opened"},Ld=["onClick"],Nd={key:1},wd={key:0,style:{width:"100%",height:"100px"}},Dd={__name:"magic-recent-opened",setup(e){const t=We([]),a=U(!1),n=oe("findResource"),i=oe("service");try{JSON.parse(De.get(D.RECENT_OPENED)||"[]").forEach(r=>t.push(r))}catch{}const s=_e(()=>t.map(r=>n(r)).filter(r=>r&&i[r.type])),o=r=>{T.$emit($.OPEN_WITH_ID,r),a.value=!1};return T.$on($.DO_RECENT,()=>a.value=!a.value),T.$on($.CLOSE,r=>{if(r.id){const l=t.findIndex(u=>u===r.id);l>-1&&t.splice(l,1),t.unshift(r.id),t.length>20&&t.splice(t.length-1,1),De.set(D.RECENT_OPENED,Be(t))}}),(r,l)=>{const u=y("magic-text-icon"),d=y("magic-empty"),g=y("magic-dialog");return v(),V(g,{value:a.value,"onUpdate:value":l[0]||(l[0]=f=>a.value=f),title:h(c)("editor.tooltip.recent"),padding:"0",shade:!1},{default:w(()=>[R("ul",kd,[(v(!0),k(te,null,fe(h(s),(f,E)=>(v(),k("li",{key:E,onClick:ye(m=>o(f.item.id),["stop"])},[h(i)[f.type]&&h(i)[f.type].getIcon?(v(),V(u,{key:0,icon:h(i)[f.type].getIcon(f.item)},null,8,["icon"])):X("",!0),R("label",null,F(f.name),1),h(i)[f.type].requirePath&&f.path?(v(),k("span",Nd,"("+F(f.path)+")",1)):X("",!0)],8,Ld))),128))]),h(s).length===0?(v(),k("div",wd,[_(d,{text:"empty."})])):X("",!0)]),_:1},8,["value","title"])}}};var Md=q(Dd,[["__scopeId","data-v-44903aa6"]]),Pd=Object.freeze(Object.defineProperty({__proto__:null,default:Md},Symbol.toStringTag,{value:"Module"}));const Ud={class:"magic-resource-header"},$d=["data-title","data-tooltip-direction","onClick"],Fd={key:0},Bd={key:0},Hd={class:"magic-create-group"},jd={key:0},Vd={__name:"magic-resource",props:{type:String,title:String,data:Array,tooltipDirection:String},emits:["close","onLoad"],setup(e,{emit:t}){const a=e,n=ee("magic-backup-file"),i=oe("service")[a.type],s=i.requirePath,o=i.getIcon,r=U(""),l=U(!0),u=U(!1),d=U(""),g=U(null),f=oe("activateUserFiles"),E=_e(()=>l.value?c("resource.createGroup"):c("resource.updateGroup")),m=U(!0),N=U({}),C=U({}),x=U(!1),b=U({type:a.type}),S=_e(()=>a.data),A=U([{name:c("resource.createGroup"),icon:"group-add",onClick:()=>{b.value={type:a.type,parentId:"0"},l.value=!0,x.value=!0}},{name:c("resource.header.expand"),icon:"expand-all",onClick:()=>Ze(S.value,P=>P.opened=!0)},{name:c("resource.header.collapse"),icon:"collapse-all",onClick:()=>Ze(S.value,P=>P.opened=!1)},{name:c("resource.header.desc"),icon:"descending",show:()=>m.value,onClick:()=>m.value=!1},{name:c("resource.header.asc"),icon:"ascending",show:()=>!m.value,onClick:()=>m.value=!0},{separator:!0},{name:c("resource.header.position"),icon:"position",onClick:()=>{C.value&&N.value&&(T.$emit($.SELECT_NAVBAR_BY_ITEM,N.value),C.value.scrollIntoView(N.value))}},{name:c("message.hide"),icon:"minimize",onClick:()=>t("close")}]),M=(P,G,z,B,ue)=>{ue=ue||[],G=G||[];let Te=G.find(at=>at===P||at.id===P);if(Te)return z.push(Te.name),ue.push(Te),i.requirePath&&Te.path&&B.push(Te.path),Te;for(let at=0,aa=G.length;at{const z=[],B=[];M(Be(P),Be(S.value),z,B);const ue=B.length>0?it(`/${B.join("/")}`):"";return G?ue:`/${z.join("/")}${i.requirePath?`(${ue})`:""}`},H=P=>I(P),L=[],j=(P,G)=>{if(P)if(P.folder)T.$emit($.OPEN_GROUP,P);else{let z=L.find(B=>B.item==P);z||(z=We({type:a.type,title:a.title,language:i.language||"magicscript",pageType:i.pageType,component:i.component,item:i.merge(P),path:()=>I(P),requestPath:()=>{const B=[];return M(Be(P),Be(S.value),[],B),it(`/${B.join("/")}`)},getGroups:()=>{const B=[];return M(Be(P),Be(S.value),[],[],B),B},getIcon:i.getIcon,runnable:i.runnable,doTest:i.doTest,processSave:i.processSave||(B=>B)}),L.push(z)),T.$emit($.OPEN,z,G)}};T.$on($.OPEN,P=>N.value=P.item),T.$on($.OPEN_EMPTY,()=>N.value=null);const{proxy:ie}=bt(),se=()=>{const P={...b.value};delete P.children,delete P.opened,delete P.folder,Y.sendJson("/resource/folder/save",P).success(G=>{if(G){const z={...Be(b.value),folder:!0,id:G};z.options=z.options||[],z.paths=z.paths||[],xe(z),T.status("resource.saveGroupSuccess",!0,a.title,I(G)),x.value=!1,T.loading(2)}else{const z=I(b.value);T.status("resource.saveGroupFailed",!1,a.title,z),ie.$alert(c("resource.saveGroupFailed",a.title,z))}})},J=(P,G)=>new Promise(z=>Y.send("/resource/move",{src:P.id,groupId:G.groupId||G.id}).success(B=>{const ue=P.folder?"resource.moveGroup":"resource.moveResource",Te=I(P);B?(P.folder?T.status(ue+"Success",!0,a.title,Te):T.status(ue+"Success",!0,Te),P[P.folder?"parentId":"groupId"]=G.groupId||G.id):P.folder?(T.status(ue+"Failed",!1,a.title,Te),ie.$alert(c(ue+"Failed",a.title,Te))):(T.status(ue+"Failed",!1,Te),ie.$alert(c(ue+"Failed",Te))),z(B)})),Ee=(P,G)=>{G=G||S.value;const z=G.findIndex(B=>B===P||B.id===P.id);z>-1?G.splice(z,1):G.forEach(B=>Ee(P,B.children||[]))},xe=(P,G)=>{G=G||S.value||[];const z=G.find(B=>B.id===P.id||P.groupId===B.id);if(z)return z.children=z.children||[],z.opened=!0,z.id===P.id?(z.name=P.name,z.path=P.path,z.parentId=P.parentId):z.children.push(P),!0;if(P.parentId==="0")return G.push(P),!0;{if(G.some(ue=>xe(P,ue.children||[])))return!0;const B=P.parentId!==void 0&&G.find(ue=>ue.id===P.parentId);if(B)return B.children=B.children||[],B.children.push(P),!0}return!1};T.$on($.OPEN_ITEM,P=>{const G=Be(S.value);G&&j(M(Be(P),G,[],[]),!0)});const Xe=(P,G)=>{if(P&&G){const z=[];P.folder?(z.push.apply(z,[{label:c("resource.contextmenu.newFile",a.title),icon:"plus",onClick(){const B={groupId:P.id,name:c("message.untitled"),script:i.defaultScript||"return 'Hello magic-api'",path:i.requirePath?"":void 0};xe(B),j(B,!0)}},{label:c("resource.createGroup"),icon:"group-add",onClick(){l.value=!0,b.value={parentId:P.id,type:a.type},x.value=!0}},{label:c("resource.updateGroup"),icon:"update",onClick(){l.value=!1,b.value={...P},x.value=!0}},{label:c("resource.copyGroup"),icon:"copy",onClick(){d.value=P.id,u.value=!0}},{label:c("resource.contextmenu.deleteGroup"),icon:"delete",onClick(){ie.$confirm(c("resource.contextmenu.deleteGroup"),c("resource.deleteGroupConfirm",a.title,I(P)),()=>{P.id?Y.send("/resource/delete",{id:P.id}).success(B=>{B?(T.status("resource.deleteGroupSuccess",!0,a.title,I(P)),Ee(P)):(ie.$alert("resource.deleteGroupFailed",a.title,I(P)),T.status("resource.deleteGroupFailed",!1,a.title,I(P)))}):Ee(P)})}},{label:c("resource.contextmenu.exportGroup"),icon:"download",onClick(){Y.send(`/download?groupId=${P.id}`,null,{headers:{"Content-Type":"application/json"},responseType:"blob"}).success(B=>{Da(B,`${P.name}.zip`),T.status("resource.groupExport",!0,P.name,a.title)})}}]),P.parentId!=="0"&&z.push({label:c("resource.contextmenu.moveToRoot"),icon:"move",onClick(){ie.$confirm(c("resource.moveGroup"),c("resource.moveRootGroupConfirm",I(P)),()=>{Y.send("/resource/move",{src:P.id,groupId:"0"}).success(B=>{B?(T.status("resource.moveRootSuccess",!0,a.title,I(P)),P.parentId="0",Ee(P),xe(P)):(ie.$alert(c("resource.moveRootFailed",a.title,I(P))),T.status("resource.moveRootFailed",!1,a.title,I(P)))})})}})):(z.push.apply(z,[{label:c("resource.contextmenu.copy",a.title),icon:"copy",divided:!0,onClick:()=>{Y.send(`/resource/file/${P.id}`).success(B=>{B.id=`copy${new Date().getTime()}d${parseInt(Math.random()*1e5)}`,xe(B),j(B,!0),B.name=B.name+`(${c("message.copy")})`,i.requirePath&&(B.path=B.path+"_copy")})}}]),i.requirePath&&(a.type==="api"&&z.push({label:c("resource.contextmenu.copyWithPath"),icon:"copy",onClick:()=>{let B=I(P,!0);B&&(B=it(D.SERVER_URL+"/"+B),Ya(B)?T.status("resource.copyPathSuccess",!0,a.title,B):T.status("resource.copyPathFailed",!1,a.title,B))}}),z.push.apply(z,[{label:c("resource.contextmenu.copyRelativePath"),icon:"copy",divided:!0,onClick:()=>{const B=I(P,!0);B&&(Ya(B)?T.status("resource.copyRelativePathSuccess",!0,a.title,B):T.status("resource.copyRelativePathFailed",!1,a.title,B))}}]),P.lock===D.LOCKED?z.push({label:c("resource.contextmenu.unlock"),icon:"unlock",onClick:()=>Y.sendPost("/resource/unlock",{id:P.id}).success(B=>{T.status(B?"message.unlockSuccess":"message.unlockFailed",B,I(P)),B&&(P.lock=D.UNLOCK)})}):z.push({label:c("resource.contextmenu.lock"),icon:"lock",onClick:()=>Y.sendPost("/resource/lock",{id:P.id}).success(B=>{T.status(B?"message.lockSuccess":"message.lockFailed",B,I(P)),B&&(P.lock=D.LOCKED)})})),P.id&&z.push({label:c("toolbars.history"),icon:"history",onClick:()=>{T.$emit($.ADD_FOOTER_TOOLBAR,{component:Ue(n),id:"backup-file",icon:"history",title:c("toolbars.viewHistory",I(P)),allowClose:!0,data:{id:P.id}})}}),z.push.apply(z,[{label:c("message.refresh"),icon:"refresh",onClick:()=>{T.$emit($.REFRESH_RESOURCE,P.id)}},{label:c("resource.contextmenu.delete"),icon:"delete",onClick:()=>{const B=`${a.title}\u300C${I(P)}\u300D`;ie.$confirm(c("message.deleteTips",a.title),c("message.deleteConfirm",B),()=>{P.id?Y.send("/resource/delete",{id:P.id}).success(ue=>{ue?(T.status("message.deleteSuccess",!0,B),Ee(P),T.$emit($.DELETE_FILE,P)):(T.status("message.deleteFailed",!1,B),ie.$alert(c("message.deleteFailed",B)))}):(T.status("message.deleteSuccess",!0,B),Ee(P),T.$emit($.DELETE_FILE,P))})}}])),D.PLUGINS.forEach(B=>{if(B.contextmenu&&typeof B.contextmenu=="function"){const ue=B.contextmenu({...P,menuType:"resource"});ue&&ue.length&&ue.forEach(Te=>z.push(Te))}}),ie.$contextmenu({menus:z,event:G})}},St=P=>{ie.$contextmenu({event:P,menus:A.value.slice(0,5).filter(G=>!G.show||G.show()).map(G=>({icon:G.icon,label:G.name,onClick:G.onClick}))})};let Ne=null;const ke=()=>{g.value&&Y.sendPost("/resource/folder/copy",{src:d.value,target:g.value.id.endsWith("-root")?"0":g.value.id}).success(P=>{Ne=P,u.value=!1,T.$emit($.LOAD_RESOURCES)})},$a=oe("findResource");return T.$on($.LOAD_RESOURCES_FINISH,()=>{Ne&&be(()=>{const P=$a(Ne);T.$emit($.SELECT_NAVBAR_BY_ITEM,P.item),T.$emit($.OPEN_GROUP,P.item)})}),pt(()=>t("onLoad")),(P,G)=>{const z=y("magic-icon"),B=y("magic-input"),ue=y("magic-empty"),Te=y("magic-text-icon"),at=y("magic-avatar-group"),aa=y("magic-tree"),Pe=y("magic-button"),Fa=y("magic-button-group"),Ba=y("magic-dialog"),Fn=y("magic-resource-choose");return v(),k("div",{class:"magic-resource",onContextmenu:G[10]||(G[10]=ye(Z=>St(Z),["prevent"]))},[R("div",Ud,[_(z,{icon:"search",size:"14px"}),_(B,{value:r.value,"onUpdate:value":G[0]||(G[0]=Z=>r.value=Z),placeholder:h(c)("message.searchText"),width:"100%"},null,8,["value","placeholder"]),R("ul",null,[(v(!0),k(te,null,fe(A.value,(Z,Ha)=>(v(),k(te,{key:Ha},[!Z.show||Z.show()?(v(),k("li",{key:0,"data-title":Z.name||"","data-tooltip-direction":e.tooltipDirection,onClick:_p=>Z.onClick&&Z.onClick(),class:ve({separator:Z.separator})},[Z.separator?X("",!0):(v(),V(z,{key:0,icon:Z.icon},null,8,["icon"]))],10,$d)):X("",!0)],64))),128))])]),!e.data||e.data.length===0?(v(),V(ue,{key:0,text:h(c)("message.empty",e.title)},null,8,["text"])):(v(),V(aa,{key:1,ref_key:"treeObj",ref:C,data:h(S),onItemClick:j,onContextmenu:Xe,draggable:!0,sort:!0,descending:m.value,onMove:J,filter:r.value,"filter-text":H,selected:N.value},{folder:w(({item:Z})=>[_(z,{icon:Z.opened?"arrow-bottom":"arrow-right",onClick:ye(Ha=>Z.opened=!Z.opened,["stop"])},null,8,["icon","onClick"]),_(z,{icon:"list"}),R("label",null,F(Z.name),1),h(s)&&Z.path?(v(),k("span",Fd,"("+F(Z.path)+")",1)):X("",!0)]),file:w(({item:Z})=>[_(Te,{icon:h(o)(Z)},null,8,["icon"]),R("label",null,F(Z.name),1),h(s)&&Z.path?(v(),k("span",Bd,"("+F(Z.path)+")",1)):X("",!0),Z.lock==="1"?(v(),V(z,{key:1,icon:"lock"})):X("",!0),_(at,{users:h(f)[Z.id]||[],max:3,size:20},null,8,["users"])]),_:1},8,["data","descending","filter","selected"])),_(Ba,{title:h(E),value:x.value,"onUpdate:value":G[5]||(G[5]=Z=>x.value=Z),width:"350px"},{default:w(()=>[R("ul",Hd,[R("li",null,[R("label",null,F(h(c)("resource.form.groupName"))+"\uFF1A",1),_(B,{value:b.value.name,"onUpdate:value":G[1]||(G[1]=Z=>b.value.name=Z),placeholder:h(c)("resource.form.placeholder.name",e.title)},null,8,["value","placeholder"])]),h(s)?(v(),k("li",jd,[R("label",null,F(h(c)("resource.form.groupPath"))+"\uFF1A",1),_(B,{value:b.value.path,"onUpdate:value":G[2]||(G[2]=Z=>b.value.path=Z),placeholder:h(c)("resource.form.placeholder.path",e.title)},null,8,["value","placeholder"])])):X("",!0)]),_(Fa,{align:"right",style:{padding:"5px 0"}},{default:w(()=>[_(Pe,{value:h(E),type:"active",onOnClick:G[3]||(G[3]=Z=>se())},null,8,["value"]),_(Pe,{value:h(c)("message.cancel"),onOnClick:G[4]||(G[4]=Z=>x.value=!1)},null,8,["value"])]),_:1})]),_:1},8,["title","value"]),_(Ba,{value:u.value,"onUpdate:value":G[9]||(G[9]=Z=>u.value=Z),title:h(c)("resource.copyGroup"),shade:!1,padding:"0",width:"400px",overflow:"hidden"},{default:w(()=>[_(Fn,{ref:"chooseGroup",value:g.value,"onUpdate:value":G[6]||(G[6]=Z=>g.value=Z),file:!1,type:e.type,single:!0},null,8,["value","type"]),_(Fa,{align:"right",style:{"margin-right":"5px","margin-bottom":"5px"}},{default:w(()=>[_(Pe,{value:h(c)("message.expand"),onOnClick:G[7]||(G[7]=Z=>P.$refs.chooseGroup.expand(!0))},null,8,["value"]),_(Pe,{value:h(c)("message.collapse"),onOnClick:G[8]||(G[8]=Z=>P.$refs.chooseGroup.expand(!1))},null,8,["value"]),_(Pe,{type:"active",value:h(c)("message.copy"),onOnClick:ke},null,8,["value"])]),_:1})]),_:1},8,["value","title"])],32)}}};var Gd=q(Vd,[["__scopeId","data-v-713f021e"]]),zd=Object.freeze(Object.defineProperty({__proto__:null,default:Gd},Symbol.toStringTag,{value:"Module"}));const Fe=e=>(Aa("data-v-6435d26c"),e=e(),Ca(),e),Yd={class:"magic-script-editor"},qd={key:0,class:"magic-empty-container"},Kd={class:"magic-hot-key"},Wd=Fe(()=>R("em",null,"Ctrl + S",-1)),Xd=Fe(()=>R("br",null,null,-1)),Jd=Fe(()=>R("em",null,"Ctrl + Q",-1)),Qd=Fe(()=>R("br",null,null,-1)),Zd=Fe(()=>R("em",null,"Alt + /",-1)),ep=Fe(()=>R("br",null,null,-1)),tp=Fe(()=>R("em",null,"F8",-1)),ap=Fe(()=>R("br",null,null,-1)),np=Fe(()=>R("em",null,"F6",-1)),ip=Fe(()=>R("br",null,null,-1)),sp=Fe(()=>R("em",null,"Ctrl + Alt + L",-1)),op=Fe(()=>R("br",null,null,-1)),rp=Fe(()=>R("em",null,"Ctrl + E",-1)),lp={key:0},cp={class:"magic-monaco-editor-wrapper"},up={__name:"magic-script-editor",emits:["onLoad"],setup(e,{emit:t}){const{proxy:a}=bt(),n=We([]),i=U({}),s=U(!0),o=U(null),r=U(null),l=oe("activateUserFiles"),u={String:"java.lang.String",Integer:"java.lang.Integer",Double:"java.lang.Double",Long:"java.lang.Long",Byte:"java.lang.Byte",Short:"java.lang.Short",Float:"java.lang.Float",MultipartFile:"org.springframework.web.multipart.MultipartFile",MultipartFiles:"java.util.List"};ea.setEnvironment(()=>{var A;const x={},b=(A=i.value)==null?void 0:A.item,S=M=>M&&Array.isArray(M)&&M.forEach(I=>{I&&typeof I.name=="string"&&I.dataType&&(x[I.name]=u[I.dataType]||"java.lang.Object")});return b&&(S(b==null?void 0:b.parameters),S(b==null?void 0:b.paths)),x});const d=x=>{let b=n.findIndex(S=>S===x);if(n.splice(b,1),x===i.value){let S=n.length;b0&&T.$emit($.OPEN,n[b-1])}T.$emit($.CLOSE,x.item),n.length===0&&(T.$emit($.OPEN_EMPTY),i.value={})};et(n,x=>{De.set(D.RECENT_OPENED_TAB,x.filter(b=>{var S;return(S=b.item)==null?void 0:S.id}).map(b=>b.item.id))});const g=x=>{const b=i.value;if(b&&b.item){const S=i.value.processSave(b.item);return Object.keys(S).forEach(A=>b.item[A]=S[A]),Y.sendJson(`/resource/file/${i.value.type}/save?auto=${x?0:1}`,S).success(A=>{const M=`${b.title}\u300C${b.path()}\u300D`;A?(T.status("message.saveSuccess",!0,M),b.tmpObject=JSON.parse(JSON.stringify(S)),b.item.id!==A&&T.loading(1),b.item.id=A):(T.status("message.saveFailed",!1,M),a.$alert(c("message.saveFailed",M)))})}},f=()=>i.value.doTest(i.value),E=x=>{if(i.value.debuging){o.value.removedDecorations(i.value.debugDecorations),i.value.debuging=!1,i.value.variables=null;const b=(i.value.decorations||[]).filter(S=>S.options.linesDecorationsClassName==="breakpoints").map(S=>S.range.startLineNumber).join("|");T.send(Se.RESUME_BREAKPOINT,[i.value.item.id,x===!0?"1":"0",b].join(","))}},m=(x,b,S)=>{const A=[{label:c("editor.tab.close"),divided:!0,onClick(){d(b)}},{label:c("editor.tab.closeOther"),divided:!0,onClick(){[...n].forEach((M,I)=>I!=S&&d(M))}},{label:c("editor.tab.closeLeft"),onClick(){[...n].forEach((M,I)=>II>S&&d(M))}},{label:c("editor.tab.closeAll"),onClick(){[...n].forEach(M=>d(M))}}];D.PLUGINS.forEach(M=>{if(M.contextmenu&&typeof M.contextmenu=="function"){const I=M.contextmenu({...b,menuType:"editorTab"});I&&I.length&&I.forEach(H=>A.push(H))}}),a.$contextmenu({menus:A,event:x})},N=x=>Object.keys(x.tmpObject||{}).some(b=>{const S=x.tmpObject[b],A=x.item[b];return S===A||b==="properties"||b==="responseBody"||b==="responseBodyDefinition"?!1:typeof S=="object"||typeof A=="object"?JSON.stringify(S)!==JSON.stringify(A):S!==A});T.$on($.LOGOUT,()=>[...n].forEach(x=>d(x))),T.$on($.DELETE_FILE,x=>{const b=n.findIndex(S=>S.item===x);b>-1&&d(n[b])}),T.$on($.RELOAD_RESOURCES_FINISH,()=>[...n].forEach(x=>d(x))),T.$event(Se.LOGIN_RESPONSE,()=>{var x;i.value&&T.send(Se.SET_FILE_ID,((x=i.value.item)==null?void 0:x.id)||"0")});const C=x=>{x&&o.value&&(x.scrollTop=o.value.getScrollTop())};return T.$on($.OPEN,x=>{let b=n.find(S=>S.item===x.item||S.item.id&&S.item.id===x.item.id);T.send(Se.SET_FILE_ID,x.item.id||"0"),b?(i.value=b,s.value=!1,be(()=>o.value.setScrollTop(b.scrollTop||0))):(n.push(x),i.value=x,x.item.id&&!x.item.script?(s.value=!0,Y.sendGet(`/resource/file/${x.item.id}`).success(S=>{T.status("message.getDetail",!0,`${x.title}\u300C${x.path()}\u300D`),Object.keys(S).forEach(A=>x.item[A]=S[A]),x.tmpObject=JSON.parse(JSON.stringify(x.processSave(S))),s.value=!1,be(()=>o.value.setScrollTop(0))})):(x.tmpObject=JSON.parse(JSON.stringify(x.processSave(x.item))),s.value=!1,be(()=>o.value.setScrollTop(0)))),i.value.decorations&&i.value.decorations.length>0&&be(()=>{const S=Be(i.value.decorations);i.value.debugDecorations=o.value.appendDecoration(S).map((A,M)=>{var I;return((I=S[M].options)==null?void 0:I.className)==="debug-line"?A:null}).filter(A=>A!==null)||[]}),be(()=>r.value&&r.value.scrollIntoView(x))}),T.$on($.DO_SAVE,g),T.$on($.DO_TEST,()=>{const x=i.value;x&&x.item&&x.runnable&&x.doTest&&x.running!==!0&&(D.AUTO_SAVE&&x.item.lock!=="1"?g().end(b=>b&&f()):f())}),T.$event(Se.BREAKPOINT,([x,{range:b,variables:S}])=>{var A,M;if(((M=(A=i.value)==null?void 0:A.item)==null?void 0:M.id)!==x){const I=n.find(H=>H.item.id===x);I&&T.$emit($.OPEN,I)}be(()=>{i.value.variables=Yi(S),i.value.debuging=!0,i.value.debugDecorations=[o.value.appendDecoration([{range:new st(b[0],1,b[0],1),options:{isWholeLine:!0,inlineClassName:"debug-line",className:"debug-line"}}])],T.$emit($.SWITCH_TOOLBAR,"debug")})}),T.$on($.DEBUG_CONTINUE,E),T.$on($.DEBUG_SETPINTO,()=>E(!0)),T.$event(Se.EXCEPTION,([[x,b,S]])=>{var A,M;if(((M=(A=i.value)==null?void 0:A.item)==null?void 0:M.id)===x){const I=new st(S[0],S[2],S[1],S[3]+1),H=o.value.getInstance(),L=H.deltaDecorations([],[{range:I,options:{hoverMessage:{value:b},inlineClassName:"squiggly-error"}}]);H.revealRangeInCenter(I),H.focus(),D.DECORATION_TIMEOUT>=0&&setTimeout(()=>H.deltaDecorations(L,[]),D.DECORATION_TIMEOUT)}}),pt(()=>t("onLoad")),(x,b)=>{const S=y("magic-text-icon"),A=y("magic-icon"),M=y("magic-avatar-group"),I=y("magic-tab"),H=y("magic-monaco-editor"),L=y("magic-loading");return v(),k("div",Yd,[n.length===0?(v(),k("div",qd,[R("div",Kd,[R("p",null,[pe(F(h(c)("message.save")),1),Wd,Xd,pe(" "+F(h(c)("message.run")),1),Jd,Qd,pe(" "+F(h(c)("editor.tooltip.complection")),1),Zd,ep,pe(" "+F(h(c)("editor.tooltip.resume")),1),tp,ap,pe(" "+F(h(c)("editor.tooltip.stepInto")),1),np,ip,pe(" "+F(h(c)("editor.tooltip.format")),1),sp,op,pe(" "+F(h(c)("editor.tooltip.recent")),1),rp])])])):(v(),k(te,{key:1},[_(I,{value:i.value,"onUpdate:value":b[0]||(b[0]=j=>i.value=j),tabs:n,className:"magic-script-tab",ref_key:"tab",ref:r,"allow-close":!0,onClose:d,onChange:b[1]||(b[1]=j=>h(T).$emit(h($).OPEN,j)),onBeforeChange:C,onItemContextmenu:m},{default:w(({tab:j})=>[_(S,{icon:j.getIcon(j.item)},null,8,["icon"]),pe(F(j.item.name),1),N(j)?(v(),k("span",lp,"*")):X("",!0),j.item.lock===x.$LOCKED?(v(),V(A,{key:1,icon:"lock"})):X("",!0),_(M,{users:h(l)[j.item.id]||[],max:3,size:20},null,8,["users"])]),_:1},8,["value","tabs"]),_(L,{loading:s.value},{default:w(()=>[R("div",cp,[i.value.pageType=="component"?(v(),V(ee(i.value.component),{key:0,Message:h($),bus:h(T),request:h(Y),selectTab:i.value},null,8,["Message","bus","request","selectTab"])):(v(),V(H,{key:1,ref_key:"editor",ref:o,value:i.value.item.script,"onUpdate:value":b[2]||(b[2]=j=>i.value.item.script=j),decorations:i.value.decorations,"onUpdate:decorations":b[3]||(b[3]=j=>i.value.decorations=j),language:i.value.language,"support-breakpoint":!0},null,8,["value","decorations","language"]))])]),_:1},8,["loading"])],64))])}}};var dp=q(up,[["__scopeId","data-v-6435d26c"]]),pp=Object.freeze(Object.defineProperty({__proto__:null,default:dp},Symbol.toStringTag,{value:"Module"}));const Un={};Object.entries({"./components/magic-editor.vue":uo,"./components/common/magic-context-menu.vue":Eo,"./components/common/magic-empty.vue":xo,"./components/common/magic-loading.vue":Co,"./components/common/magic-monaco-diff-editor.vue":wo,"./components/common/magic-monaco-editor.vue":$o,"./components/common/magic-resizer.vue":jo,"./components/common/data/magic-navbar-item.vue":Yo,"./components/common/data/magic-navbar.css":Ko,"./components/common/data/magic-navbar.js":er,"./components/common/data/magic-tab.css":ar,"./components/common/data/magic-tab.js":ir,"./components/common/data/magic-table-column.vue":or,"./components/common/data/magic-table.css":lr,"./components/common/data/magic-table.js":ur,"./components/common/data/magic-tree.css":pr,"./components/common/data/magic-tree.js":hr,"./components/common/dialog/magic-alert.vue":yi,"./components/common/dialog/magic-confirm.vue":Si,"./components/common/dialog/magic-dialog.vue":vr,"./components/common/dialog/magic-modal.js":xi,"./components/common/dialog/magic-notify.vue":Or,"./components/common/form/magic-button-group.vue":Cr,"./components/common/form/magic-button.vue":Lr,"./components/common/form/magic-checkbox.vue":Mr,"./components/common/form/magic-file.vue":Br,"./components/common/form/magic-input.vue":Gr,"./components/common/form/magic-select.vue":Xr,"./components/common/form/magic-textarea.vue":el,"./components/common/icon/magic-avatar-group.vue":nl,"./components/common/icon/magic-avatar.vue":rl,"./components/common/icon/magic-icon.vue":Qo,"./components/common/icon/magic-text-icon.vue":dl,"./components/panel/api/magic-api-body.vue":fl,"./components/panel/api/magic-api-description.vue":ml,"./components/panel/api/magic-api-group.vue":yl,"./components/panel/api/magic-api-header.vue":xl,"./components/panel/api/magic-api-info.vue":Cl,"./components/panel/api/magic-api-option.vue":Ll,"./components/panel/api/magic-api-parameter.vue":Dl,"./components/panel/api/magic-api-path.vue":Ul,"./components/panel/api/magic-api-request-body.vue":Bl,"./components/panel/api/magic-api-request-structure.vue":ql,"./components/panel/api/magic-api-response-body.vue":Jl,"./components/panel/api/magic-api-response-header.vue":ac,"./components/panel/api/magic-api-response-structure.vue":lc,"./components/panel/api/magic-api-response.vue":pc,"./components/panel/api/magic-global-header.vue":fc,"./components/panel/api/magic-global-parameter.vue":vc,"./components/panel/api/magic-global.vue":Tc,"./components/panel/common/magic-panel-common-toolbar.vue":xc,"./components/panel/common/magic-panel-toolbar.vue":Ic,"./components/panel/common/magic-resource-choose.vue":Mc,"./components/panel/datasource/magic-datasource-datasource.vue":Wc,"./components/panel/footer/magic-backup-file.vue":eu,"./components/panel/footer/magic-backup.vue":ou,"./components/panel/footer/magic-debug.vue":Nu,"./components/panel/footer/magic-event.vue":Uu,"./components/panel/footer/magic-log.vue":ju,"./components/panel/footer/magic-online.vue":Yu,"./components/panel/footer/magic-status-bar.vue":Qu,"./components/panel/footer/magic-todo.vue":i1,"./components/panel/footer/magic-toolbar.vue":u1,"./components/panel/function/magic-function-info.vue":h1,"./components/panel/function/magic-function-parameter.vue":m1,"./components/panel/header/magic-export.vue":E1,"./components/panel/header/magic-header.vue":w1,"./components/panel/header/magic-push.vue":U1,"./components/panel/header/magic-search.vue":Y1,"./components/panel/header/magic-upload.vue":K1,"./components/panel/main/magic-data-resource.vue":ad,"./components/panel/main/magic-login.vue":gd,"./components/panel/main/magic-main.vue":Id,"./components/panel/main/magic-recent-opened.vue":Pd,"./components/panel/main/magic-resource.vue":zd,"./components/panel/main/magic-script-editor.vue":pp}).forEach(([e,t])=>Un[e.substring(e.lastIndexOf("/")+1,e.lastIndexOf("."))]=t.default);const Oa=e=>{let t;Object.entries(Un).forEach(([a,n])=>{e.component(a,n)}),e.config.globalProperties.$contextmenu=a=>{t!=null&&t.unmount(),t=Ra(Dn,{menus:a.menus,position:{x:a.event.clientX,y:a.event.clientY},onDestory:()=>{t&&t.unmount(),t=null}}),Oa(t),t.mount(".magic-editor .magic-mounts")},Object.keys(D).forEach(a=>e.config.globalProperties[`$${a}`]=D[a]),fn(e,Oa)};if(typeof window!="undefined"){let e=function(){var t=document.body,a=document.getElementById("__svg__icons__dom__1683726251474__");a||(a=document.createElementNS("http://www.w3.org/2000/svg","svg"),a.style.position="absolute",a.style.width="0",a.style.height="0",a.id="__svg__icons__dom__1683726251474__",a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),a.innerHTML='',t.insertBefore(a,t.firstChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}window.Vue=Xn;const $n=Ra(oi);$n.use(Oa);$n.mount("#app");export{Wa as _}; diff --git a/magic-editor/src/main/resources/magic-editor/assets/index.0cc26bfc.js b/magic-editor/src/main/resources/magic-editor/assets/index.ac5bc35e.js similarity index 84% rename from magic-editor/src/main/resources/magic-editor/assets/index.0cc26bfc.js rename to magic-editor/src/main/resources/magic-editor/assets/index.ac5bc35e.js index 79dec3f0..73d3f86d 100644 --- a/magic-editor/src/main/resources/magic-editor/assets/index.0cc26bfc.js +++ b/magic-editor/src/main/resources/magic-editor/assets/index.ac5bc35e.js @@ -1 +1 @@ -import"./app.b15d6e90.js";import"./vue.6f28a6f0.js";import"./axios.23e7b955.js";import"./vendor.cc41f120.js";const s=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerpolicy&&(r.referrerPolicy=e.referrerpolicy),e.crossorigin==="use-credentials"?r.credentials="include":e.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(e){if(e.ep)return;e.ep=!0;const r=n(e);fetch(e.href,r)}};s(); +import"./app.a9d6cb03.js";import"./vue.6f28a6f0.js";import"./axios.23e7b955.js";import"./vendor.3be44c84.js";const s=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerpolicy&&(r.referrerPolicy=e.referrerpolicy),e.crossorigin==="use-credentials"?r.credentials="include":e.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(e){if(e.ep)return;e.ep=!0;const r=n(e);fetch(e.href,r)}};s(); diff --git a/magic-editor/src/main/resources/magic-editor/assets/style.07c46cc4.css b/magic-editor/src/main/resources/magic-editor/assets/style.07c46cc4.css new file mode 100644 index 00000000..adb62a5e --- /dev/null +++ b/magic-editor/src/main/resources/magic-editor/assets/style.07c46cc4.css @@ -0,0 +1 @@ +html,body,#app{width:100%;height:100%;margin:0!important}@font-face{font-family:JetBrainsMono;src:url(./JetBrainsMono-Regular.bceff071.woff2) format("woff2");font-weight:100;font-style:normal}@font-face{font-family:PoetsenOne;src:url(./PoetsenOne.14047964.woff2) format("woff2");font-weight:100;font-style:normal}.magic-editor{width:100%;height:100%;overflow:auto;display:flex;flex-direction:column;position:relative;min-width:1200px;min-height:600px;font-size:12px;letter-spacing:0px;background-color:var(--main-background-color);cursor:default;color:var(--main-color);outline:0;--main-color: #000;--main-background-color: #f2f2f2;--main-border-color: #cdcdcd;--main-hover-background-color: #d9d9d9;--main-hover-icon-background-color: #d9d9d9;--main-selected-background-color: #bdbdbd;--main-selected-color: #000;--main-icon-color: #6e6e6e;--navbar-body-background-color: #fff;--navbar-body-border-color: #c0c0c0;--header-title-color: #000;--header-default-color: #6e6e6e;--empty-background-color: #b6b6b6;--empty-color: #505050;--empty-key-color: #5263a0;--tree-hover-background-color: #d4d4d4;--tree-icon-color: #aeb9c0;--table-border-color: #bdbdbd;--input-border-color: #bdbdbd;--input-background-color: #fff;--input-focus-color: #0784de;--dialog-border-color: #707070;--dialog-shadow-color: #cfcfcf;--button-border-color: #adadad;--button-background-color: #e3e3e3;--button-hover-border-color: #99a0a5;--button-hover-background-color: #e3f1fa;--button-disabled-color: #bdbdbd;--select-background-color: #e3e3e3;--select-hover-background-color: #e3f1fa;--select-option-background-color: #fff;--select-option-border-color: #808080;--select-option-hover-background-color: #1a7dc4;--select-option-hover-color: #fff;--select-inputable-background-color: #fff;--tab-selected-background-color: #fff;--icon-debug-color: #59A869;--icon-step-color: #389FD6;--data-type-default-color: #000;--data-type-string-color: #008000;--data-type-integer-color: #0000ff;--data-type-number-color: #0000ff;--data-type-byte-color: #0000ff;--data-type-long-color: #0000ff;--data-type-float-color: #0000ff;--data-type-double-color: #0000ff;--data-type-short-color: #0000ff;--data-type-boolean-color: #000080;--data-type-class-color: #660e7a;--data-type-key-color: #AC0039;--breakpoints-background-color: #db5860;--debug-line-background-color: #2154A6;--breakpoint-line-background-color: #FAEAE6;--run-log-background-color: #fff;--log-color-info: #00cd00;--log-color-warn: #A66F00;--log-color-debug: #00cccc;--log-color-error: #cd0000;--log-color-trace: #0000EE;--log-color-cyan: #00CCCC;--log-color-link: #006DCC;--todo-color: #008dde;--message-em-color: #007F31;--checkbox-background-color: #fff;--checkbox-text-color: #fff;--checkbox-border-color: #b0b0b0;--checkbox-selected-boder-color: #4F9EE3;--checkbox-selected-background-color: #4F9EE3;--resource-label-color: #000;--resource-span-color: #999;--scollbar-color: rgba(170, 170, 170, .7);--scollbar-background: rgba(194, 194, 194, .1);--scollbar-thumb-background: rgba(170, 170, 170, .4);--scollbar-thumb-hover-background: rgba(170, 170, 170, .7);--scollbar-scrollbar-corner-background: rgba(194, 194, 194, .1);--magic-navbar-vertical-width: 22px;--magic-navbar-vertical-title-display: block;--magic-navbar-vertical-icon-size: 1.3em;--magic-navbar-vertical-header-padding: 8px 3px;--magic-navbar-vertical-header-margin: 0;--magic-navbar-vertical-header-border-radius: 0;--magic-navbar-vertical-header-border-width: 1px;--magic-resource-header-icon-display: inline-flex;--magic-header-height: 30px;--magic-header-icon-size: 24px;--magic-panel-toolbar-width: 28px;--magic-panel-toolbar-size: 18px;--tab-selected-border-color: #4083c9;--magic-navbar-horizontal-height: 24px;--magic-input-height: 22px;--magic-table-row-height: 24px;--input-focus-border-width: 1px;--input-border-radius: 0px;--button-hover-color: var(--main-color);--button-border-hover-color: var(--button-border-color);--button-height: 22px;--magic-header-logo-padding: 25px;--magic-header-logo-background-size: 16px;--magic-header-logo-background-position: 4px 7px;--context-menu-background: var(--main-background-color);--context-menu-padding: 0;--context-menu-item-border-radius: 0;--tooltip-background-color: #27282E;--tooltip-color: #fff;--tooltip-border-color: transparent}.magic-editor,.magic-editor .monaco-editor,.magic-log pre,.magic-input,.magic-dialog pre{font-family:JetBrainsMono,Consolas,Courier New,\5fae\8f6f\96c5\9ed1}.magic-editor *{box-sizing:border-box;padding:0;margin:0}.magic-editor .none-select{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none}.magic-editor ul{list-style:none;margin:0;padding:0}.magic-editor *{scrollbar-color:var(--scollbar-thumb-background) var(--scollbar-thumb-background);scrollbar-track-color:var(--scollbar-thumb-background);-ms-scrollbar-track-color:var(--scollbar-thumb-background);scrollbar-width:thin}.magic-editor *::-webkit-scrollbar{width:5px;height:5px;background:var(--scollbar-background)}.magic-editor *::-webkit-scrollbar-thumb{border-radius:3px;background:var(--scollbar-thumb-background)}.magic-editor *::-webkit-scrollbar-thumb:hover{background:var(--scollbar-thumb-hover-background)}.magic-editor *::-webkit-scrollbar-corner{background:var(--scollbar-scrollbar-corner-background)}.magic-header .magic-logo,.magic-dialog .magic-dialog-header{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAAB3RJTUUH5QgUECk1a4VTIAAABdZJREFUeNrtm11IFF0cxp+Z1d1NdFtNbW3FDa1WoQ1hCcrUzPTOgkARNnpjuxHrovemu+jqvQmKlCC8DLooefMiQUWFFGLNj9KMgihBjSyyze+lmXHbfS9ilz17zqy7mp5edh4YmHnOmTP/85vznzlnPwTjdSWIJJbIOwDe0gDwDoC3kh5ACsuU/tHzjmtbJKRbYPj7I+El/QjQAPAOgLc0ALwD4C0NAO8AeEsDwDsA3kpJ9IS7d+8iPz+f8JaXl9Hb24tHjx4hGGSvruvr63H+/HnKX1tbw9OnT3H//n3VcwFAFEW0trYS115YWEBraytev369eQLG60owegOgun39+jXo9/uZ2507d1TP83g8quf5/f5gc3NzzOu6XC7meV6vN2i1WmOeG9qEdAvV14RTYNeuXaplV65cQXFxMeWbTCY4nc6Y7Z46dUq1TBAEXLt2jVlmNpvR1NS06QGQEAC9Xo+0tDT1xkQRDQ0NlF9ZWYmUlNjZZjQaVcuqqqrgcDhUy+vq6nYGwJ49ezasU1FRQXmx7m5IkiSpll2+fJk4lmWZOHY4HHHFtmUAWVlZlBcdTGlpKVWnurp6w876fD7mNa1WK86cOUN47e3txLEgCEzwvx0Ai/Lz588pSBaLJXycm5uLw4cPE3WGh4epdlZWVpjXdLvdRPooioK2tjaqXmVl5fYDyM7OprzBwUHKO3ToUHj/9OnTEAQhfOz1evH27VvqnOXlZTo4UcSlS5cIb2hoCK9evYLf7/8zAExOTmJtbY3wDh48SACIVGdnJ8xmM9XO4uIi5dXU1KCgoIDw+vr6oCgKpqenCf/IkSPIzMzceQCSJGFiYoLwDhw4QHQiUh0dHcjJyYkLgNvtpry+vj4AwLt378iOiCLKy8u3FwDrGaAoCl6+fMkEUFJSQszclpaWMDAwgNzc3A0BZGZm4uzZs4Q3Pz+PyclJJgBgc2mQEADWnZNlGePj44QXSoHa2lrC7+rqgqIoxENSDUBjYyMMBgPh9ff3h6fLvwtAQmsBVgrIsswcATqdjhr+T548gU6niysFXC4XVcdms6GlpQUAqPUI8OsVbDKZVN8oWwbASgFZlvHhwwesrKzAZDIB+DWrs9vtxB358eMHent7sXfvXuh0upgA9u/fj+PHj1N1ysvLY+a5TqfDiRMn0NPTE3effsszIBAIUA9Ct9uN9PT08HF/fz98Ph+sViuz7UgA9fX1xKszESU6IdoygPX1dQDA2NgY4Ue/vzs6OgAA+/bto9qQZZmYCZ47d25TnQeQ8Jsg7hTQ6/XIyMigfEVRAACjo6OEv3v37vC+JEno7OwEAOTl5VFtfP/+PbxvsVhw9OhRqs7Y2Bi+fftGeHa7HUVFRYTndDphNBpjri02BSCU39EKjYDoKXGkurq6sLq6Gu5gLAC1tbUQRXpgulwuavJz9epV3L59m/AMBgOcTic8Hk9c/Yo7BdSWqyEAX758wfv375l1Hj58GN5nLagWFhbC+2VlZVT53Nwc1XkAePPmDfN6x44di7db8QPwer3MYRU5Jw/N0qI7193dTbQTrcgRwJomP3v2jBmTx+PB/Pw85W/04cumAEiShBs3bhAdDgQC4WcAANy8eZN6GD548ICo09bWRt25yNy+desWPn/+HBcASZJw8eJFCgJrjqAmgfUboVhfj2dlZcFut0Ov18Pn8+HFixdUncLCQlgsFiiKgomJCfz8+ZOkLoooLi5GdnY2BEHA1NQU5ubmwuWpqalwOBzIyMhAIBDAyMgIATFaqampKCkpgdlshiAImJ2dxczMDN1ZxtfjCQP4P0v7fQBDGgDeAfCWBoB3ALylAeAdAG/FtRj668IF5geU26V/Hz/GvXv3/hwANpsNVSdP7hiA6A9XtlNJnwJJDyCuFFhdXcWnT592LKilpaUdu5a2GOIdFG9pAHgHwFsaAN4B8JYGgHcAvJX0AJgzQcFs4x3XtkhIo3+XIGj/HU5yaQB4B8Bb/wGL33wfrIpOmgAAACx6VFh0ZGF0ZTpjcmVhdGUAAAiZMzIwMtQ1sNA1MggxsLAyMbQyNdYGMgwMAEGtBRRid74MAAAALHpUWHRkYXRlOm1vZGlmeQAACJkzMjAy1DWw0DUyCDGwsDIxtDI11gYyDAwAQa0FFGA7xkMAAAAASUVORK5CYII=);background-size:16px}.magic-data-type{color:var(--data-type-default-color)}.magic-data-type.string{color:var(--data-type-string-color);font-weight:700}.magic-data-type.integer{color:var(--data-type-integer-color)}.magic-data-type.number{color:var(--data-type-number-color)}.magic-data-type.double{color:var(--data-type-double-color)}.magic-data-type.float{color:var(--data-type-float-color)}.magic-data-type.short{color:var(--data-type-short-color)}.magic-data-type.long{color:var(--data-type-long-color)}.magic-data-type.byte{color:var(--data-type-byte-color)}.magic-data-type.boolean{color:var(--data-type-boolean-color);font-weight:700}.magic-data-type.class{color:var(--data-type-class-color)}.magic-icon.magic-icon-difference{fill:#389fd6!important}.magic-status-bar .message em,.magic-event em{color:var(--message-em-color);font-style:normal;font-weight:700}.magic-editor .magic-monaco-editor[data-mode-id=magicscript] .monaco-editor .margin-view-overlays .codicon-folding-expanded,.magic-editor .magic-monaco-editor[data-mode-id=magicscript] .monaco-editor .margin-view-overlays .codicon-folding-collapsed{margin-left:12px!important}.magic-editor [data-title]{position:relative}.magic-editor [data-title]:hover{overflow:visible}.magic-editor [data-title]:hover:after{opacity:1;transition:all .1s ease .5s;visibility:visible}.magic-editor [data-title]:after{content:attr(data-title);background-color:var(--tooltip-background-color);color:var(--tooltip-color);font-size:12px;position:absolute;height:30px;line-height:30px;padding:0 10px;white-space:nowrap;box-shadow:0 0 4px #00000029;z-index:99999;visibility:hidden;opacity:0;border:1px solid var(--tooltip-border-color);box-sizing:border-box}.magic-editor [data-title][data-tooltip-direction=right]:after{transform:translate(100%,-50%);right:-5px;top:0;margin-top:50%}.magic-editor [data-title][data-tooltip-direction=top]:after{top:-5px;left:0;transform:translate(-50%,-100%);margin-left:50%}.magic-editor [data-title][data-tooltip-direction=left]:after{transform:translate(-100%,-50%);top:0;left:-5px;margin-top:50%}.magic-editor [data-title][data-tooltip-direction=left-top]:after{transform:translate(-100%,-100%);top:-5px;left:0;margin-left:100%}.magic-editor [data-title][data-tooltip-direction=left-bottom]:after{transform:translate(-100%,100%);bottom:-5px;left:0;margin-top:50%;margin-left:100%}.magic-editor [data-title][data-tooltip-direction=bottom]:after{bottom:0;left:0;transform:translate(-50%,100%);margin-left:50%}.magic-context-menu[data-v-75aac978]{position:absolute;z-index:999999;background-color:var(--context-menu-background);border:1px solid var(--main-border-color);padding:var(--context-menu-padding)}.magic-context-menu li[data-v-75aac978]{height:24px;line-height:24px;padding:0 10px;cursor:pointer;display:flex;border-radius:var(--context-menu-item-border-radius)}.magic-context-menu li>span[data-v-75aac978],.magic-context-menu li>label[data-v-75aac978]{cursor:pointer;white-space:pre}.magic-context-menu li.divided[data-v-75aac978]{margin-bottom:5px;position:relative}.magic-context-menu li.divided[data-v-75aac978]:after{content:"";height:2px;width:100%;border-bottom:1px solid var(--main-border-color);margin-bottom:2px;position:absolute;left:0;top:100%}.magic-context-menu .magic-context-menu-icon[data-v-75aac978]{display:inline-block;text-align:center;margin-right:8px;width:13px}.magic-context-menu li[data-v-75aac978]:hover{background-color:var(--select-option-hover-background-color)}.magic-context-menu li:hover>span[data-v-75aac978],.magic-context-menu li:hover>label[data-v-75aac978]{color:var(--select-option-hover-color)}.magic-context-menu li:hover>span[data-v-75aac978] .magic-icon{fill:var(--select-option-hover-color)}.magic-context-menu li:hover .magic-context-menu[data-v-75aac978]{display:block}.magic-context-menu li .magic-context-menu[data-v-75aac978]{left:100%;margin-top:-1px;display:none}.magic-context-menu li .magic-context-menu-icon.right[data-v-75aac978]{float:right;margin-right:0;margin-left:5px}.magic-empty[data-v-70308d5a]{width:100%;height:100%;position:relative}.magic-empty p[data-v-70308d5a]{text-align:center;width:100%;height:24px;line-height:24px;top:50%;position:relative;margin-top:-12px}.magic-loading[data-v-19c11c56]{width:100%;height:100%;position:relative;top:0;left:0}.magic-loading p[data-v-19c11c56]{position:absolute;text-align:center;width:100%;top:50%;margin-top:-20px}.magic-loading .icon[data-v-19c11c56]{width:20px;margin:0 auto;animation:rotate-19c11c56 1s linear infinite;display:block}@keyframes rotate-19c11c56{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.magic-monaco-editor[data-v-59a04eab],.magic-monaco-editor[data-v-9b3f02a8]{flex:1;overflow:hidden}.magic-monaco-editor[data-v-9b3f02a8] .breakpoints{background:var(--breakpoints-background-color);width:10px!important;height:10px!important;right:0px!important;margin-left:12px;top:5px;border-radius:5px}.magic-monaco-editor[data-v-9b3f02a8] .debug-line{background:var(--debug-line-background-color);color:#fff!important}.magic-monaco-editor[data-v-9b3f02a8] .breakpoint-line{background:var(--breakpoint-line-background-color)}.magic-resizer-x[data-v-032bc45e],.magic-resizer-y[data-v-032bc45e]{display:flex;position:relative;overflow:hidden;transition:none}.magic-resizer-event[data-v-032bc45e]{position:absolute;z-index:20;--width: 100%;--height: 100%}.magic-resizer-event[data-v-032bc45e]:after{content:" ";position:fixed;z-index:9999}.magic-resizer-x .magic-resizer-event[data-v-032bc45e]{width:15px;height:100%;right:-15px;cursor:col-resize}.magic-resizer-x .magic-resizer-event[data-v-032bc45e]:after{width:10px;height:var(--height)}.magic-resizer-x .magic-resizer-event.reverse[data-v-032bc45e]{right:unset;left:-5px}.magic-resizer-x[data-v-032bc45e]{height:100%}.magic-resizer-y .magic-resizer-event[data-v-032bc45e]{height:10px;width:100%;top:-5px;cursor:row-resize}.magic-resizer-y .magic-resizer-event[data-v-032bc45e]:after{height:10px;width:var(--width)}.magic-navbar-item[data-v-30388e35]{height:100%;width:100%}svg[data-v-15383e92]{width:1.3em;height:1.3em;vertical-align:-.25em;overflow:hidden;fill:var(--main-icon-color)}.magic-navbar{display:flex;background-color:var(--main-background-color);transition:.3s}.magic-navbar .magic-navbar-body{background-color:var(--navbar-body-background-color);overflow:auto}.magic-navbar .magic-navbar-header li:hover{background-color:var(--main-hover-background-color)}.magic-navbar .magic-navbar-header li.selected{background-color:var(--main-selected-background-color);color:var(--main-selected-color)}.magic-navbar .magic-navbar-header li.selected svg text{fill:var(--main-selected-color)}.magic-navbar .magic-navbar-header li svg text{letter-spacing:0px;font-size:10px}.magic-navbar__vertical.reverse{flex-direction:row-reverse}.magic-navbar__vertical .magic-navbar-header li{display:flex;flex-direction:column;align-items:center;overflow:hidden;padding:var(--magic-navbar-vertical-header-padding);margin:var(--magic-navbar-vertical-header-margin);cursor:pointer;border-bottom-color:var(--main-border-color);border-bottom-style:solid;border-bottom-width:var(--magic-navbar-vertical-header-border-width);border-radius:var(--magic-navbar-vertical-header-border-radius)}.magic-navbar__vertical .magic-navbar-header{width:var(--magic-navbar-vertical-width);height:100%;letter-spacing:2px;text-align:center;padding:0;border-right:1px solid var(--main-border-color)}.magic-navbar__vertical.reverse .magic-navbar-header{border-left:1px solid var(--main-border-color);border-right:none}.magic-navbar__vertical.reverse .magic-navbar-header li{display:flex;flex-direction:column-reverse}.magic-navbar__vertical .magic-navbar-header li{line-height:14px;word-break:break-all}.magic-navbar__vertical .magic-navbar-body{flex:1}.magic-navbar__vertical .magic-navbar-body{border-right:1px solid var(--navbar-body-border-color)}.magic-navbar__vertical.reverse .magic-navbar-body{border-left:1px solid var(--navbar-body-border-color);border-right:none}.magic-navbar__horizontal>ul{width:100%}.magic-navbar__horizontal>ul li{display:inline-flex;flex-direction:row-reverse;padding:0 8px;height:var(--magic-navbar-horizontal-height);line-height:var(--magic-navbar-horizontal-height);cursor:pointer;color:var(--main-color)}.magic-navbar__horizontal>ul li svg.magic-icon{height:100%;margin-right:4px}.magic-navbar__horizontal>ul{border-top:1px solid var(--main-border-color)}.magic-navbar.magic-navbar__vertical .magic-navbar-title{padding-bottom:4px;display:var(--magic-navbar-vertical-title-display)}.magic-navbar.magic-navbar__vertical>ul li svg.magic-icon{width:var(--magic-navbar-vertical-icon-size);height:var(--magic-navbar-vertical-icon-size)}.magic-navbar.magic-navbar__vertical.reverse .magic-navbar-title{padding-top:4px;padding-bottom:0;display:var(--magic-navbar-vertical-title-display)}.magic-tab{width:100%;overflow:hidden;flex-wrap:nowrap;white-space:nowrap;transition:.3s}.magic-tab ul{overflow-x:auto}.magic-tab ul li{display:inline-block;cursor:pointer;padding:0 10px;height:24px;line-height:24px}.magic-tab ul li.selected,.magic-tab ul li:hover,.magic-tab.magic-script-tab ul li.selected:hover,.magic-tab ul li.draggable-target-item{background-color:var(--main-hover-background-color)}.magic-tab.magic-script-tab{border-bottom:1px solid var(--main-border-color);height:30px;position:absolute}.magic-tab.magic-script-tab ul li{height:30px;line-height:30px;border-bottom:3px solid transparent}.magic-tab.magic-script-tab ul li.selected{border-bottom-color:var(--tab-selected-border-color);background-color:var(--tab-selected-background-color)}.magic-table{display:flex;flex-direction:column;box-sizing:border-box}.magic-table .magic-table-body{flex:1;overflow:auto}.magic-table .magic-table-header,.magic-table .magic-table-body .magic-table-row{display:flex;height:var(--magic-table-row-height);line-height:var(--magic-table-row-height);border-bottom:1px solid var(--main-border-color)}.magic-table .magic-table-body .magic-table-row:hover{background-color:var(--main-hover-background-color)}.magic-table .magic-table-column{flex:1;display:inline-flex}.magic-table .magic-table-column span:last-child{flex:1;overflow:hidden;text-overflow:ellipsis;width:0px;white-space:pre}.magic-table .magic-table-column .magic-select{width:100%}.magic-table__border .magic-table-body .magic-table-row{border-bottom:1px solid var(--table-border-color)}.magic-table__border .magic-table-column:not(:last-child){border-right:1px solid var(--table-border-color)}.magic-tree{position:relative;overflow:auto}.magic-tree>ul{position:absolute;top:0;left:0}.magic-tree .magic-tree-item{height:20px;line-height:20px;transition:.3s;word-break:break-all;white-space:nowrap}.magic-tree .magic-tree-item:hover,.magic-tree .magic-tree-item.selected,.magic-tree .magic-tree-item.draggable-target-item{background-color:var(--tree-hover-background-color)}.magic-tree .magic-tree-item .magic-icon{fill:var(--tree-icon-color);margin-right:2px}.magic-tree ul{max-height:99999px;min-width:100%}.magic-tree li{white-space:nowrap;word-break:break-all}.magic-tree .hide{opacity:0;max-height:0;position:relative}.magic-tree svg:not(.root) .magic-icon-datasource{fill:#089910}.magic-dialog[data-v-3e8f0d71]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:999999;text-align:center}.magic-dialog__shade[data-v-3e8f0d71]{background-color:#0000004d}.magic-dialog[data-v-3e8f0d71]:before{content:"";display:inline-block;height:100%;vertical-align:middle;margin-right:-.25em}.magic-dialog-main[data-v-3e8f0d71]{background:var(--main-background-color);border:1px solid var(--dialog-border-color);display:inline-block;vertical-align:middle;position:relative;min-width:250px;box-shadow:0 0 8px var(--dialog-shadow-color);max-width:800px;color:var(--main-color);transition:none}.magic-dialog-header[data-v-3e8f0d71]{height:30px;line-height:30px;padding-left:30px;padding-right:75px;background-position:7px 7px;background-repeat:no-repeat;text-align:left}.magic-dialog-header.moveable[data-v-3e8f0d71]{cursor:move}.magic-dialog-header span[data-v-3e8f0d71]{display:inline-block;width:30px;position:absolute;right:0;text-align:center;cursor:pointer;font-size:12px;height:30px;line-height:30px}.magic-dialog-header span[data-v-3e8f0d71]:hover{background-color:#e81123}.magic-dialog-header span:hover .magic-icon[data-v-3e8f0d71]{fill:#fff}.magic-dialog-body[data-v-3e8f0d71]{text-align:left;word-break:break-all}.magic-dialog[data-v-3e8f0d71] .magic-loading{min-width:200px;min-height:200px}.magic-notify[data-v-4a37ceea]{position:absolute;right:40px;bottom:65px;transition:.5s;z-index:999999}.magic-notify .magic-notify-item[data-v-4a37ceea]{background-color:var(--main-background-color);padding:5px;position:relative;border-radius:2px;border:1px solid var(--main-border-color);max-width:280px;box-shadow:0 0 8px var(--dialog-shadow-color)}.magic-notify .magic-notify-item[data-v-4a37ceea]:not(:first-child){margin-top:5px}.magic-notify .magic-notify-item .magic-icon-close[data-v-4a37ceea]{font-size:12px}.magic-notify .magic-notify-item .close[data-v-4a37ceea]{position:absolute;top:2px;right:2px;display:none}.magic-notify .magic-notify-item h3[data-v-4a37ceea]{font-size:12px;height:20px;line-height:20px;display:flex;align-items:center}.magic-notify .magic-notify-item h3 svg[data-v-4a37ceea]{vertical-align:middle;margin-right:2px}.magic-notify .magic-notify-item:hover .close[data-v-4a37ceea]{display:block}.magic-notify .magic-notify-item p[data-v-4a37ceea]{padding:5px 5px 5px 16px}.magic-notify .magic-notify-item .magic-button-group[data-v-4a37ceea]{padding-left:11px}.magic-button-group[data-v-70c60ab6] .magic-button:not(:last-child){margin-right:10px}.magic-button-group.right[data-v-70c60ab6]{text-align:right}.magic-button-group.left[data-v-70c60ab6]{text-align:left}.magic-button-group.center[data-v-70c60ab6]{text-align:center}.magic-button[data-v-d216a404]{height:var(--button-height);line-height:var(--button-height);background-color:var(--button-background-color);text-align:center;padding:0 15px;border:1px solid var(--button-border-color);outline:0;cursor:pointer;color:var(--main-color)}.magic-button.link[data-v-d216a404]{background-color:transparent;color:var(--log-color-link);border:none;padding:0 5px}.magic-button.active[data-v-d216a404],.magic-button[data-v-d216a404]:hover:not(.link){background-color:var(--button-hover-background-color);border-color:var(--button-hover-border-color);color:var(--button-hover-color);border-color:var(--button-border-hover-color)}.magic-checkbox[data-v-61c815ba]{width:100%;height:100%;text-align:center;display:inline-block}.magic-checkbox input[data-v-61c815ba]{display:none}.magic-checkbox input+label[data-v-61c815ba]{position:relative;color:#c9c9c9;font-size:12px;height:var(--magic-input-height);line-height:var(--magic-input-height);width:var(--magic-input-height);user-select:none;display:inline-block}.magic-checkbox input+label[data-v-61c815ba]:after{display:inline-block;background-color:var(--checkbox-background-color);border:1px solid var(--checkbox-border-color);content:"";width:calc(var(--magic-input-height) - 8px);height:calc(var(--magic-input-height) - 8px);line-height:calc(var(--magic-input-height) - 8px);position:absolute;top:4px;left:4px;text-align:center;font-size:12px;color:var(--checkbox-text-color)}.magic-checkbox input:checked+label[data-v-61c815ba]:after{content:"\2714";background-color:var(--checkbox-selected-background-color);border-color:var(--checkbox-selected-border-color)}.magic-checkbox input+label.checkedHalf[data-v-61c815ba]:after{content:"\2501"}.magic-file[data-v-a16f8c8a]{width:100%;position:relative}.magic-file .magic-icon[data-v-a16f8c8a]{position:absolute;right:4px;top:0;height:var(--magic-input-height);line-height:var(--magic-input-height)}.magic-input[data-v-15b9b158]{height:var(--magic-input-height);line-height:var(--magic-input-height);border-radius:0;outline:0;border:1px solid transparent;border-radius:var(--input-border-radius);margin:0;padding:0 0 0 5px;background-color:var(--input-background-color);color:var(--main-color)}.magic-input[data-v-15b9b158]:autofill{background:var(--input-background-color)}.magic-input[data-v-15b9b158]:-webkit-autofill,.magic-input[data-v-15b9b158]:-webkit-autofill:hover,.magic-input[data-v-15b9b158]:-webkit-autofill:focus,.magic-input[data-v-15b9b158]:-webkit-autofill:active{transition:background-color 5000s;-webkit-text-fill-color:var(--main-color)!important}.magic-input[data-v-15b9b158]:focus{border-color:var(--input-focus-color);border-width:var(--input-focus-border-width)}.magic-input__border[data-v-15b9b158]{border-color:var(--input-border-color)}.magic-input[data-v-15b9b158]::-webkit-outer-spin-button,.magic-input[data-v-15b9b158]::-webkit-inner-spin-button{-webkit-appearance:none}.magic-input[type=number][data-v-15b9b158]{-moz-appearance:textfield}.magic-select[data-v-9b6dc9a6]{position:relative;display:inline-block;background:var(--select-background-color);height:var(--magic-input-height);line-height:var(--magic-input-height);width:80px;font-size:12px;text-align:left}.magic-select.inputable[data-v-9b6dc9a6]{background:var(--select-inputable-background-color);border-color:var(--select-inputable-border-color)}.magic-select.border[data-v-9b6dc9a6]{border:1px solid var(--input-border-color)}.magic-select input[data-v-9b6dc9a6]{background:none;border:none;height:var(--magic-input-height);line-height:var(--magic-input-height);border-radius:0;outline:0;padding-left:5px;width:100%;color:var(--main-color)}.magic-select span[data-v-9b6dc9a6]{height:var(--magic-input-height);line-height:var(--magic-input-height);border-radius:0;outline:0;padding-left:5px}.magic-select[data-v-9b6dc9a6]:hover:not(.inputable){background:var(--select-hover-background-color)}.magic-select .magic-icon[data-v-9b6dc9a6]{position:absolute;right:5px;height:100%}.magic-select ul[data-v-9b6dc9a6]{display:block;position:fixed;z-index:10;background:var(--select-option-background-color);border:1px solid var(--select-option-border-color);margin-top:-2px;padding:0;box-sizing:content-box;margin-left:-1px}.magic-select ul li[data-v-9b6dc9a6]{padding:0 5px;width:100%!important;height:var(--magic-input-height);text-overflow:ellipsis;word-break:keep-all;text-align:left}.magic-select ul li[data-v-9b6dc9a6]:hover{background:var(--select-option-hover-background-color);color:var(--select-option-hover-color)}.magic-textarea[data-v-ca6693f6]{line-height:22px;border-radius:0;outline:0;border:1px solid var(--input-border-color);resize:none;background:var(--input-background-color);color:var(--input-color);width:100%;height:100%}.magic-textarea[data-v-ca6693f6]:focus{border-color:var(--input-focus-color)}.magic-avatar-group[data-v-511f7f80]{display:inline-block;height:22px;line-height:22px}.magic-avatar-group .magic-avatar[data-v-511f7f80]{position:relative;margin-left:-5px}.magic-avatar[data-v-73f02f44]{color:#fff;display:inline-block;text-align:center}.magic-api-body[data-v-25300c90]{display:flex;flex:1;height:100%}.magic-api-body>div[data-v-25300c90]{background-color:var(--navbar-body-background-color);flex:1;overflow:hidden;position:relative;height:100%;display:flex}.magic-api-group[data-v-07a9bc9f]{display:flex;flex-direction:column}.magic-api-group form[data-v-07a9bc9f]{display:flex;padding:5px}.magic-api-group form label[data-v-07a9bc9f]{display:inline-block;width:85px;height:22px;line-height:22px;font-weight:400;text-align:right;padding:0 5px}.magic-api-group+.magic-navbar[data-v-07a9bc9f]{flex-direction:column;overflow:hidden}.magic-api-group+.magic-navbar[data-v-07a9bc9f] .magic-navbar-header{border-bottom:1px solid var(--main-border-color)}.magic-navbar[data-v-07a9bc9f] .magic-navbar-body,.magic-navbar[data-v-07a9bc9f] .magic-navbar-item{width:100%;height:100%}.magic-api-group>form .magic-button[data-v-07a9bc9f]{margin-left:10px}.magic-api-info[data-v-31699d76]{display:flex;flex-direction:column}.magic-api-info form[data-v-31699d76]{display:flex;padding:5px}.magic-api-info form label[data-v-31699d76]{display:inline-block;width:75px;height:var(--magic-input-height);line-height:var(--magic-input-height);font-weight:400;text-align:right;padding:0 5px}.magic-api-info+.magic-navbar[data-v-31699d76]{flex-direction:column;overflow:hidden}.magic-api-info+.magic-navbar[data-v-31699d76] .magic-navbar-header{border-bottom:1px solid var(--main-border-color)}.magic-navbar[data-v-31699d76] .magic-navbar-body,.magic-navbar[data-v-31699d76] .magic-navbar-item{width:100%;height:100%}.magic-monaco-editor[data-v-7f02b65d]{position:absolute;left:0;right:0;top:0;bottom:0}.magic-table[data-v-bda6618c]{flex:1}.magic-table[data-v-bda6618c] .magic-table-column{display:flex;justify-content:center;text-align:center}.magic-table[data-v-bda6618c] .magic-table-column:first-child{justify-content:unset!important;text-align:unset!important}.magic-data-type[data-v-bda6618c]{display:inline-block;width:0;padding:0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:center}iframe[data-v-27b4e47a]{width:100%;height:100%;border:0}.magic-monaco-editor[data-v-27b4e47a]{position:absolute;left:0;right:0;top:0;bottom:0}.magic-table[data-v-76813707]{flex:1}.magic-table span[data-v-76813707]{padding:0 5px}.magic-table[data-v-051e4f5a]{flex:1}.magic-table[data-v-051e4f5a] .magic-table-column{display:flex;justify-content:center;text-align:center}.magic-table[data-v-051e4f5a] .magic-table-column:first-child{justify-content:unset!important;text-align:unset!important}.magic-data-type[data-v-051e4f5a]{display:inline-block;width:0;padding:0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.magic-panel-api-response[data-v-1cf463a0]{width:100%;height:100%;display:flex;flex-direction:column}.magic-panel-api-response[data-v-1cf463a0] .magic-navbar__horizontal>ul{border-top:none;border-bottom:1px solid var(--main-border-color)}.magic-navbar[data-v-1cf463a0]{flex-direction:column;width:100%;height:100%}.magic-panel-api-response[data-v-1cf463a0] .magic-navbar .magic-navbar-body,.magic-panel-api-response[data-v-1cf463a0] .magic-navbar .magic-navbar-item{width:100%;height:100%}.magic-panel-api-response[data-v-1cf463a0] .magic-navbar .magic-navbar-item{display:flex;position:relative}.magic-global[data-v-03e7bbcc]{display:flex;flex-direction:column;flex:1;width:100%;height:100%}.magic-global>.magic-navbar[data-v-03e7bbcc]{flex-direction:column;overflow:hidden}.magic-global>.magic-navbar[data-v-03e7bbcc] .magic-navbar-header{border-bottom:1px solid var(--main-border-color)}.magic-navbar[data-v-03e7bbcc] .magic-navbar-body,.magic-navbar[data-v-03e7bbcc] .magic-navbar-item{width:100%;height:100%}.magic-global .magic-panel-global[data-v-03e7bbcc]{display:flex;width:100%;height:100%}.magic-global[data-v-03e7bbcc] .magic-panel-global>div{flex:1}.magic-panel-toolbar[data-v-332dea14]{width:var(--magic-panel-toolbar-width);border-right:1px solid var(--main-border-color);height:100%;text-align:center}.magic-panel-toolbar li[data-v-332dea14]{cursor:pointer;border-radius:2px;width:var(--magic-panel-toolbar-size);height:var(--magic-panel-toolbar-size);line-height:var(--magic-panel-toolbar-size);margin:3px auto;font-size:1em}.magic-panel-toolbar li[data-v-332dea14]:not(.disabled):hover,.magic-panel-toolbar li:not(.disabled).selected[data-v-332dea14]{background-color:var(--main-hover-icon-background-color)}.magic-panel-toolbar li.disabled[data-v-332dea14] .magic-icon>*{fill:var(--button-disabled-color)}.magic-resource-choose[data-v-4852fc0e]{max-height:400px;overflow:auto}.magic-resource-choose .magic-tree[data-v-4852fc0e]{margin-bottom:5px;min-height:300px}.magic-resource-choose .magic-tree[data-v-4852fc0e] .magic-icon.root{color:var(--main-icon-color)}.magic-resource-choose .magic-tree[data-v-4852fc0e] .magic-checkbox{display:inline;margin-right:3px}.magic-resource-choose .magic-tree[data-v-4852fc0e] .magic-checkbox input+label{width:12px!important;height:12px!important}.magic-resource-choose .magic-tree[data-v-4852fc0e] .magic-tree-item{padding-left:5px}.magic-resource-choose .magic-tree[data-v-4852fc0e] .magic-checkbox input+label:after{width:12px!important;height:12px!important;line-height:12px!important;top:0!important;left:0!important}.magic-resource-choose[data-v-4852fc0e] .magic-tree label{color:var(--resource-label-color)}.magic-resource-choose[data-v-4852fc0e] .magic-tree span{color:var(--resource-span-color)}.magic-table[data-v-ef606938]{width:270px;border-right:1px solid var(--table-border-color)}.magic-backup-file[data-v-ef606938]{height:100%;position:relative;overflow:hidden;display:flex}.magic-backup-file-diff-container[data-v-ef606938]{flex:1;overflow:hidden;height:100%;display:flex;flex-direction:column}.magic-backup-file-diff-container>ul[data-v-ef606938]{display:flex}.magic-backup-file-diff-container>ul li[data-v-ef606938]{flex:1;height:30px;line-height:30px;padding:0 5px}.magic-backup-file-diff-container>ul li button[data-v-ef606938]{float:right;margin-right:10px;margin-top:4px}.magic-backup[data-v-b15945c0]{display:flex;flex:1;height:100%}.magic-backup>div[data-v-b15945c0]{background-color:var(--navbar-body-background-color);flex:1;overflow:hidden;position:relative;height:100%}.magic-backup .magic-table[data-v-b15945c0]{height:100%;position:absolute;width:100%}.magic-backup[data-v-b15945c0] .magic-table-row .magic-table-column:last-child,.magic-backup[data-v-b15945c0] .magic-table-header .magic-table-column:last-child{padding-left:5px}.magic-backup-diff-container[data-v-b15945c0]{width:100%;height:100%;display:flex;flex-direction:column}.magic-backup-diff-container .magic-backup-diff-header[data-v-b15945c0]{height:30px;line-height:30px;display:flex}.magic-backup-diff-container .magic-backup-diff-header>div[data-v-b15945c0]{flex:1}.magic-backup-diff-container .magic-backup-diff-header>div[data-v-b15945c0]:last-child{text-align:right}.magic-dialog-diff .magic-dialog-main{display:inline-flex;flex-direction:column}.magic-dialog-diff .magic-dialog-main .magic-dialog-body{flex:1;display:flex;flex-direction:column}.magic-panel-toolbar[data-v-71b796dc] .magic-icon-continue{fill:var(--icon-debug-color)}.magic-panel-toolbar[data-v-71b796dc] .magic-icon-step-over{fill:var(--icon-step-color)}.magic-debug[data-v-71b796dc]{display:flex;flex:1}.magic-debug .magic-debug-variables[data-v-71b796dc]{flex:1;background-color:var(--navbar-body-background-color);position:relative;overflow:auto}.magic-debug[data-v-71b796dc] .magic-tree{position:absolute;width:100%;height:100%}.magic-debug[data-v-71b796dc] .magic-tree .magic-tree-item{height:auto}.magic-debug .object-type[data-v-71b796dc]{color:var(--resource-span-color)}.magic-debug label.key[data-v-71b796dc]{color:var(--data-type-key-color);padding-left:3px}.magic-debug label.separator[data-v-71b796dc]{padding:0 5px}.magic-debug svg[data-v-71b796dc]{display:inline-block;width:16px;height:16px;vertical-align:middle}.magic-event[data-v-06d5ba36],.magic-event[data-v-06d5ba36] .magic-table{display:flex;flex:1}.magic-event>div[data-v-06d5ba36]{background-color:var(--navbar-body-background-color);flex:1;overflow:hidden;position:relative;height:100%}.magic-event[data-v-06d5ba36] .magic-table{height:100%;position:absolute;width:100%}.magic-event[data-v-06d5ba36] .magic-table .magic-table-header{display:none}.magic-event[data-v-06d5ba36] .magic-table .magic-table-row{border-right:1px solid var(--main-border-color)}.magic-event[data-v-06d5ba36] .magic-table .magic-table-column{padding-left:5px}.magic-log-wrapper{display:flex;flex:1;height:100%;overflow:hidden;position:relative}.magic-log{font-size:13.5px;padding:5px;flex:1;overflow:auto;position:absolute;top:0;right:0;bottom:0;left:var(--magic-panel-toolbar-width)}.magic-log>div{width:100%}.magic-log>div pre{line-height:20px;width:100%}.magic-log>div.multiple pre{max-height:60px;overflow:hidden}.magic-log>div.multiple.more pre{max-height:none}.magic-log span.multiple{opacity:.5;font-size:13px;text-decoration:underline;cursor:pointer}.magic-log pre span.log-INFO{color:var(--log-color-info)}.magic-log pre span.log-DEBUG{color:var(--log-color-debug)}.magic-log pre span.log-ERROR{color:var(--log-color-error)}.magic-log pre span.log-WARN{color:var(--log-color-warn)}.magic-log pre span.log-TRACE{color:var(--log-color-trace)}.magic-log pre span.log-cyan{color:var(--log-color-cyan)}.magic-log pre a.log-link{color:var(--log-color-link)}.magic-online[data-v-0c296fa2]{height:30px;line-height:30px;float:right;padding-left:10px;max-width:500px}.magic-online>span[data-v-0c296fa2]{padding-left:5px}.magic-status-bar[data-v-55e90cbc]{height:30px;line-height:30px;display:flex;background-color:var(--main-background-color);padding-left:24px}.magic-status-bar .message[data-v-55e90cbc]{flex:1}.magic-status-bar ul[data-v-55e90cbc]{float:right;display:inline-flex;align-items:center;padding-right:2px}.magic-status-bar ul li[data-v-55e90cbc]{cursor:pointer;padding:0 4px;height:20px;line-height:20px;border-radius:3px}.magic-status-bar ul li .magic-icon[data-v-55e90cbc]{height:20px;line-height:20px}.magic-status-bar ul li[data-v-55e90cbc]:hover{background-color:var(--main-hover-icon-background-color)}.magic-todo[data-v-29308d9b]{display:flex;flex:1}.magic-todo div[data-v-29308d9b]{background-color:var(--navbar-body-background-color);flex:1;overflow:hidden;position:relative}.magic-todo div[data-v-29308d9b] .magic-tree{width:100%;height:100%;position:absolute;overflow:auto}.magic-todo div[data-v-29308d9b] .magic-tree label{color:var(--resource-label-color)}.magic-todo div[data-v-29308d9b] .magic-tree label.todo{font-style:italic;color:var(--todo-color)}.magic-todo div[data-v-29308d9b] .magic-tree span{color:var(--resource-span-color)}.magic-toolbar .magic-navbar[data-v-68b3ca3b]{flex-direction:column-reverse}.magic-toolbar-header[data-v-68b3ca3b]{height:26px;line-height:26px;border-bottom:1px solid var(--main-border-color);border-top:1px solid var(--main-border-color);background-color:var(--main-background-color)}.magic-toolbar-header+div[data-v-68b3ca3b]{z-index:99999}.magic-toolbar-header label[data-v-68b3ca3b]{display:inline-block;padding-left:10px}.magic-toolbar .magic-resizer-y[data-v-68b3ca3b]{flex-direction:column}.magic-toolbar-header-buttons[data-v-68b3ca3b]{float:right;margin-right:5px;vertical-align:middle;display:flex;align-items:center;height:26px}.magic-toolbar-header-buttons .magic-icon[data-v-68b3ca3b]{display:inline-block;cursor:pointer;padding:0 2px;height:18px;line-height:18px;border-radius:3px;z-index:99999}.magic-toolbar-header-buttons .magic-icon[data-v-68b3ca3b]:hover{background-color:var(--main-hover-icon-background-color)}.magic-toolbar .magic-navbar[data-v-68b3ca3b] .magic-navbar-body{background-color:var(--main-background-color)}.magic-panel-api,.magic-panel-function,.magic-event{display:flex;width:100%;height:100%}.magic-panel-api>div,.magic-panel-function>div,.magic-event>div{flex:1}.magic-function-info[data-v-bc8654ec]{display:flex;flex-direction:column}.magic-function-info form[data-v-bc8654ec]{display:flex;padding:5px}.magic-function-info form label[data-v-bc8654ec]{display:inline-block;height:22px;line-height:22px;font-weight:400;text-align:right;padding:0 5px 0 20px}.magic-navbar[data-v-bc8654ec]{flex-direction:column;overflow:hidden}.magic-navbar[data-v-bc8654ec] .magic-navbar-header{border-bottom:1px solid var(--main-border-color)}.magic-navbar[data-v-bc8654ec] .magic-navbar-body,.magic-navbar[data-v-bc8654ec] .magic-navbar-item{width:100%;height:100%}.magic-dialog[data-v-097eba83] .magic-dialog-body{overflow:hidden}.magic-header[data-v-1e7d7426]{height:var(--magic-header-height);line-height:var(--magic-header-height);background-color:var(--main-background-color);border-bottom:1px solid var(--main-border-color);display:flex;color:var(--header-default-color)}.magic-header .magic-logo[data-v-1e7d7426]{float:left;font-weight:700;font-size:0;letter-spacing:0;background-repeat:no-repeat;background-position:var(--magic-header-logo-background-position);background-size:var(--magic-header-logo-background-size);padding-left:var(--magic-header-logo-padding);color:var(--header-title-color)}.magic-header .magic-logo label[data-v-1e7d7426]{font-size:16px;display:inline-block;margin-right:5px;text-align:left;font-weight:400}.magic-header .magic-logo label[data-v-1e7d7426]:last-child{font-size:12px}.magic-header ul[data-v-1e7d7426]{float:right}.magic-header ul li[data-v-1e7d7426]{cursor:pointer;height:var(--magic-header-height);text-align:center;display:inline-flex;align-items:center}.magic-header ul li svg[data-v-1e7d7426]{padding:0 4px;height:var(--magic-header-icon-size);width:var(--magic-header-icon-size);border-radius:4px}.magic-header ul li.disabled svg[data-v-1e7d7426]{fill:var(--button-disabled-color)}.magic-header ul li:not(.disabled) svg[data-v-1e7d7426]:hover{background-color:var(--main-hover-icon-background-color)}.magic-header ul li[data-v-1e7d7426]:not(.disabled) .magic-icon-run,.magic-header ul li[data-v-1e7d7426] .magic-icon-push{fill:#59a869}.magic-header-title[data-v-1e7d7426]{flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.magic-skin-selector[data-v-1e7d7426],.magic-locale-selector[data-v-1e7d7426]{position:absolute;top:var(--magic-header-height);right:24px;z-index:20;background-color:var(--main-background-color);border:1px solid var(--main-border-color);border-top:none}.magic-skin-selector[data-v-1e7d7426]{right:48px}.magic-skin-selector ul li[data-v-1e7d7426],.magic-locale-selector ul li[data-v-1e7d7426]{height:24px;line-height:24px;text-align:center;cursor:pointer;padding:2px 5px}.magic-skin-selector ul li[data-v-1e7d7426]:not(:last-child),.magic-locale-selector ul li[data-v-1e7d7426]:not(:last-child){border-bottom:1px solid var(--main-border-color)}.magic-skin-selector ul li[data-v-1e7d7426]:hover,.magic-locale-selector ul li[data-v-1e7d7426]:hover{background-color:var(--select-option-hover-background-color);color:var(--select-option-hover-color)}.magic-dialog[data-v-440447fe] .magic-dialog-body{overflow:hidden}.magic-push-form[data-v-440447fe]{padding:0 10px}.magic-push-form>div[data-v-440447fe]{display:flex;margin-top:5px}.magic-push-form label[data-v-440447fe]{width:80px;text-align:right;display:inline-block;height:var(--magic-input-height);line-height:var(--magic-input-height)}.magic-push-form[data-v-440447fe] .magic-input{width:auto!important;flex:1}.magic-search-result[data-v-4bbc2d10]{overflow:auto;max-height:200px;background-color:var(--navbar-body-background-color)}.magic-search-result .magic-search-result-item[data-v-4bbc2d10]{display:flex;padding:0 5px;line-height:20px}.magic-search-result .magic-search-result-item[data-v-4bbc2d10]:hover,.magic-search-result .magic-search-result-item.selected[data-v-4bbc2d10]{background-color:var(--tree-hover-background-color)}.magic-search-result .magic-search-result-item .label[data-v-4bbc2d10]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.magic-search-result .magic-search-result-item .label[data-v-4bbc2d10] .keyword{background:#FFDE7B;color:#000}.magic-search-result-item .name[data-v-4bbc2d10],.magic-search-result-item .line[data-v-4bbc2d10]{color:var(--resource-span-color)}.magic-search-result .magic-search-result-item .line[data-v-4bbc2d10]{padding-left:5px}.display-text[data-v-4bbc2d10]{height:30px;line-height:30px;border-top:1px solid var(--main-border-color);border-bottom:1px solid var(--main-border-color)}.magic-data-resource[data-v-4f1250a4]{display:flex;flex-direction:column;flex:1;width:100%}.magic-data-resource .magic-data-resource-header[data-v-4f1250a4]{height:24px;line-height:24px;display:flex;background-color:var(--main-background-color);border-bottom:1px solid var(--main-border-color);padding-left:3px}.magic-data-resource .magic-data-resource-header input[data-v-4f1250a4]{flex:1;border:none;background:none;height:24px;line-height:24px}.magic-data-resource .magic-data-resource-header ul[data-v-4f1250a4]{display:inline-flex;align-items:center}.magic-data-resource .magic-data-resource-header ul li[data-v-4f1250a4]{display:inline-block;cursor:pointer;padding:0 3px;height:20px;line-height:20px;border-radius:3px}.magic-data-resource .magic-data-resource-header ul li.separator[data-v-4f1250a4]{background-color:var(--main-border-color);width:1px;border-radius:0;padding:0;margin:0 4px}.magic-data-resource .magic-data-resource-header ul li[data-v-4f1250a4]:hover{background:var(--main-hover-icon-background-color)}.magic-data-resource .magic-data-resource-header svg[data-v-4f1250a4]{height:100%}.magic-data-resource>ul[data-v-4f1250a4]{height:100%;overflow:auto}.magic-data-resource>ul li[data-v-4f1250a4]{line-height:22px;padding-left:10px;white-space:nowrap}.magic-data-resource>ul li[data-v-4f1250a4]:hover{background-color:var(--tree-hover-background-color)}.magic-data-resource>ul li .magic-icon[data-v-4f1250a4]{padding-right:2px}.magic-data-resource>ul li label[data-v-4f1250a4]{color:var(--resource-label-color)}.magic-data-resource>ul li span[data-v-4f1250a4]{color:var(--resource-span-color);display:inline-block;height:22px;line-height:22px}.magic-data-resource>ul li[data-v-4f1250a4] .magic-icon-datasource{fill:#089910}.magic-editor .magic-form-row{display:flex;margin-bottom:5px}.magic-editor .magic-form-row label{margin-right:5px;display:inline-block;width:70px;text-align:right;height:var(--magic-input-height);line-height:var(--magic-input-height)}.magic-editor .magic-form-row>input,.magic-editor .magic-form-row>.magic-select{flex:1;width:auto}label[data-v-cbcc40fa]{width:60px;text-align:right;display:inline-block}.magic-login[data-v-cbcc40fa]{position:fixed;z-index:999999999999;background:#fff;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-image:url(./login-bg.025a11cc.svg)}.magic-login .magic-login-box[data-v-cbcc40fa]{border-radius:5px;width:450px;box-shadow:0 7px 25px #00000014;position:absolute;box-sizing:border-box;padding-top:60px;top:33.333333%;margin-top:-125px;background-color:#fff}.magic-login-logo[data-v-cbcc40fa]{background-image:url(./logo-magic-api.7bf52c65.png);width:128px;height:128px;background-size:90px 90px;background-repeat:no-repeat;background-position:center center;position:absolute;top:-64px;left:50%;margin-left:-64px;border-radius:64px;box-shadow:0 0 20px 5px #00000014;padding:10px;background-color:#fff}.magic-login-text[data-v-cbcc40fa]{height:70px;line-height:70px;display:block;text-align:center;font-family:PoetsenOne;font-size:28px;color:gray}.magic-login-text span[data-v-cbcc40fa]{font-size:16px}.magic-login-copyright[data-v-cbcc40fa]{text-align:center;color:#999;font-size:18px;font-family:Avenir,Helvetica,Arial,sans-serif;position:absolute;bottom:50px}.magic-login-copyright a[data-v-cbcc40fa]{text-decoration:none;color:#2196f3;outline:0}.magic-login-row[data-v-cbcc40fa]{width:400px;margin:25px auto;position:relative}.magic-login-row.error[data-v-cbcc40fa]{background-color:#fff1f0;border:1px solid #ffa39e;color:#000;border-radius:4px;padding:10px 0 10px 40px}.magic-login-row.error span[data-v-cbcc40fa]{font-size:14px;word-break:break-all}.magic-login-row svg[data-v-cbcc40fa]{position:absolute;width:20px;height:20px;top:15px;left:15px}.magic-login-row.error svg[data-v-cbcc40fa]{top:10px}.magic-login-row[data-v-cbcc40fa] .magic-icon-error{fill:red}.magic-login-box .magic-input[data-v-cbcc40fa]{height:50px;line-height:50px;background-color:transparent;display:block;border:1px solid #D9D9D9;border-radius:4px;padding-left:40px;color:#000000a6;transition:all .3s;font-size:16px}.magic-login-box .magic-input[data-v-cbcc40fa]:focus{border-color:#0784de}.magic-login-box .magic-button[data-v-cbcc40fa]{width:100%;height:50px;line-height:50px;background-color:#2196f3;color:#fff;border-radius:4px;font-size:18px;border-color:#2196f3;transition:all .3s}.magic-login-box .magic-button[data-v-cbcc40fa]:hover,.magic-login-box .magic-button[data-v-cbcc40fa]:focus{background-color:#4db5ff!important;border-color:#4db5ff!important;color:#fff!important}.magic-login-box .magic-button[data-v-cbcc40fa]:active{background-color:#1272cc;border-color:#1272cc}.magic-main[data-v-478ba993]{flex:1;display:flex;border-bottom:1px solid var(--main-border-color);height:0;width:100%}.magic-main-body-wrapper[data-v-478ba993]{display:flex;flex:1;flex-direction:column}.magic-main-body[data-v-478ba993]{display:flex;flex:1;overflow:hidden}.magic-toolbar[data-v-478ba993] .magic-resizer-y .magic-resizer-event{top:auto}ul[data-v-44903aa6]{max-width:400px;max-height:600px;overflow:auto}ul li[data-v-44903aa6]:hover{background-color:var(--tree-hover-background-color)}ul li[data-v-44903aa6]{height:20px;line-height:20px;transition:.3s;word-break:break-all;white-space:nowrap}ul li label[data-v-44903aa6]{color:var(--resource-label-color)}ul li span[data-v-44903aa6]{color:var(--resource-span-color)}.magic-dialog-main[data-v-44903aa6] .magic-dialog-body{padding:0}.magic-resource[data-v-713f021e]{display:flex;flex-direction:column;flex:1;width:100%}.magic-resource .magic-resource-header[data-v-713f021e]{height:24px;line-height:24px;display:flex;background-color:var(--main-background-color);border-bottom:1px solid var(--main-border-color)}.magic-resource .magic-resource-header input[data-v-713f021e]{flex:1;border:none;background:none;height:24px;line-height:24px}.magic-resource .magic-resource-header ul[data-v-713f021e]{display:var(--magic-resource-header-icon-display);align-items:center}.magic-resource:hover .magic-resource-header ul[data-v-713f021e]{display:inline-flex}.magic-resource .magic-resource-header ul li[data-v-713f021e]{display:inline-block;cursor:pointer;padding:0 3px;height:20px;line-height:20px;border-radius:3px}.magic-resource .magic-resource-header svg[data-v-713f021e]{height:100%}.magic-resource .magic-resource-header ul li.separator[data-v-713f021e]{background-color:var(--main-border-color);width:1px;border-radius:0;padding:0;margin:0 4px}.magic-resource .magic-resource-header ul li[data-v-713f021e]:hover{background:var(--main-hover-icon-background-color)}.magic-resource .magic-tree label[data-v-713f021e]{color:var(--resource-label-color)}.magic-resource .magic-tree span[data-v-713f021e]{color:var(--resource-span-color)}.magic-resource .magic-tree .magic-icon-lock[data-v-713f021e]{fill:var(--resource-label-color);margin-left:5px}.magic-resource>.magic-tree[data-v-713f021e]{flex:1;overflow:auto}.magic-create-group li[data-v-713f021e]{display:flex;height:26px;line-height:26px}.magic-create-group li[data-v-713f021e]:not(:first-child){margin-top:4px}.magic-create-group li input[data-v-713f021e]{flex:1}.magic-resource[data-v-713f021e] .magic-avatar-group{margin-left:10px}.magic-script-editor[data-v-6435d26c]{flex:1;overflow:hidden;position:relative}.magic-script-editor .magic-monaco-editor-wrapper[data-v-6435d26c]{position:absolute;top:30px;left:0;right:0;bottom:0}.magic-empty-container[data-v-6435d26c]{flex:1;position:relative;width:100%;height:100%;background:var(--empty-background-color)}.magic-hot-key[data-v-6435d26c]{position:absolute;top:50%;margin-top:-105px;text-align:center;color:var(--empty-color);font-size:16px;width:100%}.magic-hot-key p[data-v-6435d26c]{display:inline-block;text-align:left;line-height:30px}.magic-hot-key p em[data-v-6435d26c]{margin-left:15px;font-style:normal;color:var(--empty-key-color)}.magic-monaco-editor[data-v-6435d26c]{position:absolute;top:0;bottom:0;left:0;right:0;overflow:visible!important}.magic-script-editor[data-v-6435d26c] .magic-avatar-group{margin-left:10px}.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif;--monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace}.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{position:absolute!important;top:0;height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%)}.monaco-editor.hc-black{-ms-high-contrast-adjust:none}@media screen and (-ms-high-contrast:active){.monaco-editor.vs .view-overlays .current-line,.monaco-editor.vs-dark .view-overlays .current-line{border-color:windowtext!important;border-left:0;border-right:0}.monaco-editor.vs .cursor,.monaco-editor.vs-dark .cursor{background-color:windowtext!important}.monaco-editor.vs .dnd-target,.monaco-editor.vs-dark .dnd-target{border-color:windowtext!important}.monaco-editor.vs .selected-text,.monaco-editor.vs-dark .selected-text{background-color:highlight!important}.monaco-editor.vs .view-line,.monaco-editor.vs-dark .view-line{-ms-high-contrast-adjust:none}.monaco-editor.vs .view-line span,.monaco-editor.vs-dark .view-line span{color:windowtext!important}.monaco-editor.vs .view-line span.inline-selected-text,.monaco-editor.vs-dark .view-line span.inline-selected-text{color:highlighttext!important}.monaco-editor.vs .view-overlays,.monaco-editor.vs-dark .view-overlays{-ms-high-contrast-adjust:none}.monaco-editor.vs .selectionHighlight,.monaco-editor.vs-dark .selectionHighlight,.monaco-editor.vs .wordHighlight,.monaco-editor.vs-dark .wordHighlight,.monaco-editor.vs .wordHighlightStrong,.monaco-editor.vs-dark .wordHighlightStrong,.monaco-editor.vs .reference-decoration,.monaco-editor.vs-dark .reference-decoration{border:2px dotted highlight!important;background:transparent!important;box-sizing:border-box}.monaco-editor.vs .rangeHighlight,.monaco-editor.vs-dark .rangeHighlight{background:transparent!important;border:1px dotted activeborder!important;box-sizing:border-box}.monaco-editor.vs .bracket-match,.monaco-editor.vs-dark .bracket-match{border-color:windowtext!important;background:transparent!important}.monaco-editor.vs .findMatch,.monaco-editor.vs-dark .findMatch,.monaco-editor.vs .currentFindMatch,.monaco-editor.vs-dark .currentFindMatch{border:2px dotted activeborder!important;background:transparent!important;box-sizing:border-box}.monaco-editor.vs .find-widget,.monaco-editor.vs-dark .find-widget{border:1px solid windowtext}.monaco-editor.vs .monaco-list .monaco-list-row,.monaco-editor.vs-dark .monaco-list .monaco-list-row{-ms-high-contrast-adjust:none;color:windowtext!important}.monaco-editor.vs .monaco-list .monaco-list-row.focused,.monaco-editor.vs-dark .monaco-list .monaco-list-row.focused{color:highlighttext!important;background-color:highlight!important}.monaco-editor.vs .monaco-list .monaco-list-row:hover,.monaco-editor.vs-dark .monaco-list .monaco-list-row:hover{background:transparent!important;border:1px solid highlight;box-sizing:border-box}.monaco-editor.vs .monaco-scrollable-element>.scrollbar,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar{-ms-high-contrast-adjust:none;background:background!important;border:1px solid windowtext;box-sizing:border-box}.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider{background:windowtext!important}.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider:hover,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider:hover{background:highlight!important}.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider.active,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider.active{background:highlight!important}.monaco-editor.vs .decorationsOverviewRuler,.monaco-editor.vs-dark .decorationsOverviewRuler{opacity:0}.monaco-editor.vs .minimap,.monaco-editor.vs-dark .minimap{display:none}.monaco-editor.vs .squiggly-d-error,.monaco-editor.vs-dark .squiggly-d-error{background:transparent!important;border-bottom:4px double #E47777}.monaco-editor.vs .squiggly-c-warning,.monaco-editor.vs-dark .squiggly-c-warning,.monaco-editor.vs .squiggly-b-info,.monaco-editor.vs-dark .squiggly-b-info{border-bottom:4px double #71B771}.monaco-editor.vs .squiggly-a-hint,.monaco-editor.vs-dark .squiggly-a-hint{border-bottom:4px double #6c6c6c}.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{-ms-high-contrast-adjust:none;color:highlighttext!important;background-color:highlight!important}.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label{-ms-high-contrast-adjust:none;background:transparent!important;border:1px solid highlight;box-sizing:border-box}.monaco-diff-editor.vs .diffOverviewRuler,.monaco-diff-editor.vs-dark .diffOverviewRuler{display:none}.monaco-editor.vs .line-insert,.monaco-editor.vs-dark .line-insert,.monaco-editor.vs .line-delete,.monaco-editor.vs-dark .line-delete{background:transparent!important;border:1px solid highlight!important;box-sizing:border-box}.monaco-editor.vs .char-insert,.monaco-editor.vs-dark .char-insert,.monaco-editor.vs .char-delete,.monaco-editor.vs-dark .char-delete{background:transparent!important}}.monaco-aria-container{position:absolute;left:-999em}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .inputarea{min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:none!important;resize:none;border:none;overflow:hidden;color:transparent;background-color:transparent}.monaco-editor .inputarea.ime-input{z-index:10}.monaco-editor .margin-view-overlays .line-numbers{font-variant-numeric:tabular-nums;position:absolute;text-align:right;display:inline-block;vertical-align:middle;box-sizing:border-box;cursor:default;height:100%}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-mouse-cursor-text{cursor:text}.vs-dark .mac .monaco-mouse-cursor-text,.hc-black .mac .monaco-mouse-cursor-text,.vs-dark.mac .monaco-mouse-cursor-text,.hc-black.mac .monaco-mouse-cursor-text{cursor:-webkit-image-set(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1x,url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) 2x) 5 8,text}.monaco-editor .view-overlays .current-line,.monaco-editor .margin-view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{position:absolute}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;background:rgba(0,0,0,0);transition:opacity .1s linear}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:#ddd 0 6px 6px -6px inset}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:#ddd 6px 0 6px -6px inset}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.monaco-scrollable-element>.shadow.top.left{box-shadow:#ddd 6px 6px 6px -6px inset}.vs .monaco-scrollable-element>.scrollbar>.slider{background:rgba(100,100,100,.4)}.vs-dark .monaco-scrollable-element>.scrollbar>.slider{background:rgba(121,121,121,.4)}.hc-black .monaco-scrollable-element>.scrollbar>.slider{background:rgba(111,195,223,.6)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:rgba(100,100,100,.7)}.hc-black .monaco-scrollable-element>.scrollbar>.slider:hover{background:rgba(111,195,223,.8)}.monaco-scrollable-element>.scrollbar>.slider.active{background:rgba(0,0,0,.6)}.vs-dark .monaco-scrollable-element>.scrollbar>.slider.active{background:rgba(191,191,191,.4)}.hc-black .monaco-scrollable-element>.scrollbar>.slider.active{background:rgba(111,195,223,1)}.vs-dark .monaco-scrollable-element .shadow.top{box-shadow:none}.vs-dark .monaco-scrollable-element .shadow.left{box-shadow:#000 6px 0 6px -6px inset}.vs-dark .monaco-scrollable-element .shadow.top.left{box-shadow:#000 6px 6px 6px -6px inset}.hc-black .monaco-scrollable-element .shadow.top,.hc-black .monaco-scrollable-element .shadow.left,.hc-black .monaco-scrollable-element .shadow.top.left{box-shadow:none}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .margin-view-overlays .cgmr{position:absolute;display:flex;align-items:center;justify-content:center}.monaco-editor .lines-content .core-guide{position:absolute}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .mtkz{display:inline-block}.monaco-editor .lines-decorations{position:absolute;top:0;background:white}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}.monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover:hover .minimap-slider,.monaco-editor .minimap.slider-mouseover .minimap-slider.active{opacity:1}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{position:absolute;left:-6px;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{position:absolute;left:-1px;width:1px}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{position:absolute;top:0}.monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{position:absolute;overflow:hidden}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{box-sizing:border-box;background:transparent!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:transparent!important;box-sizing:border-box}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-width:1px;border-bottom-style:solid;background:transparent!important;box-sizing:border-box}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:rgba(0,0,0,.03)}.monaco-diff-editor.vs-dark .diffOverview{background:rgba(255,255,255,.01)}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:rgba(0,0,0,0)}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:rgba(171,171,171,.4)}.modified-in-monaco-diff-editor.hc-black .slider.active{background:none}.monaco-editor .insert-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-diff-editor .delete-sign{font-size:11px!important;opacity:.7!important;display:flex!important;align-items:center}.monaco-editor.hc-black .insert-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .delete-sign{opacity:1}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .inline-added-margin-view-zone{text-align:right}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}:root{--sash-size: 4px}.monaco-sash{position:absolute;z-index:35;touch-action:none}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;top:0;width:var(--sash-size);height:100%}.monaco-sash.horizontal{cursor:ns-resize;left:0;width:100%;height:var(--sash-size)}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";height:calc(var(--sash-size) * 2);width:calc(var(--sash-size) * 2);z-index:100;display:block;cursor:all-scroll;position:absolute}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--sash-size) * -.5);top:calc(var(--sash-size) * -1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{left:calc(var(--sash-size) * -.5);bottom:calc(var(--sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{top:calc(var(--sash-size) * -.5);left:calc(var(--sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{top:calc(var(--sash-size) * -.5);right:calc(var(--sash-size) * -1)}.monaco-sash:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;transition:background-color .1s ease-out;background:transparent}.monaco-sash.vertical:before{width:var(--sash-hover-size);left:calc(50% - (var(--sash-hover-size) / 2))}.monaco-sash.horizontal:before{height:var(--sash-hover-size);top:calc(50% - (var(--sash-hover-size) / 2))}.monaco-sash.debug{background:cyan}.monaco-sash.debug.disabled{background:rgba(0,255,255,.2)}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-diff-editor .diff-review-line-number{text-align:right;display:inline-block}.monaco-diff-editor .diff-review{position:absolute;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-diff-editor .diff-review-summary{padding-left:10px}.monaco-diff-editor .diff-review-shadow{position:absolute}.monaco-diff-editor .diff-review-row{white-space:pre}.monaco-diff-editor .diff-review-table{display:table;min-width:100%}.monaco-diff-editor .diff-review-row{display:table-row;width:100%}.monaco-diff-editor .diff-review-spacer{display:inline-block;width:10px;vertical-align:middle}.monaco-diff-editor .diff-review-spacer>.codicon{font-size:9px!important}.monaco-diff-editor .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px}.monaco-diff-editor .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{display:flex;margin:0 auto;padding:0;height:100%;width:100%;align-items:center}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{display:block;align-items:center;justify-content:center;cursor:pointer;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .icon,.monaco-action-bar .action-item .codicon{display:block}.monaco-action-bar .action-item .codicon{display:flex;align-items:center;width:16px;height:16px}.monaco-action-bar .action-label{font-size:11px;padding:3px;border-radius:5px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{opacity:.4}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{display:block;border-bottom:1px solid #bbb;padding-top:1px;margin-left:.8em;margin-right:.8em}.monaco-action-bar .action-item .action-label.separator{width:1px;height:16px;margin:5px 4px!important;cursor:default;min-width:1px;padding:0;background-color:#bbb}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{overflow:hidden;flex:1;max-width:170px;min-width:60px;display:flex;align-items:center;justify-content:center;margin-right:10px}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-label{margin-right:1px}@font-face{font-family:codicon;font-display:block;src:url(./codicon.d86f69b1.ttf) format("truetype")}.codicon[class*=codicon-]{font: 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none;-ms-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.context-view{position:absolute;z-index:2500}.context-view.fixed{all:initial;font-family:inherit;font-size:13px;position:fixed;z-index:2500;color:inherit}.context-view .monaco-menu{min-width:130px}.monaco-list{position:relative;height:100%;width:100%;white-space:nowrap}.monaco-list.mouse-support{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{position:relative;width:100%;height:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{position:absolute;box-sizing:border-box;overflow:hidden;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-single,.monaco-list.selection-multiple{outline:0!important}.monaco-drag-image{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;position:absolute;z-index:1000}.monaco-list-type-filter{display:flex;align-items:center;position:absolute;border-radius:2px;padding:0 3px;max-width:calc(100% - 10px);text-overflow:ellipsis;overflow:hidden;text-align:right;box-sizing:border-box;cursor:all-scroll;font-size:13px;line-height:18px;height:20px;z-index:1;top:4px}.monaco-list-type-filter.dragging{transition:top .2s,left .2s}.monaco-list-type-filter.ne{right:4px}.monaco-list-type-filter.nw{left:4px}.monaco-list-type-filter>.controls{display:flex;align-items:center;box-sizing:border-box;transition:width .2s;width:0}.monaco-list-type-filter.dragging>.controls,.monaco-list-type-filter:hover>.controls{width:36px}.monaco-list-type-filter>.controls>*{border:none;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;background:none;width:16px;height:16px;flex-shrink:0;margin:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer}.monaco-list-type-filter>.controls>.filter{margin-left:4px}.monaco-list-type-filter-message{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;padding:40px 1em 1em;text-align:center;white-space:normal;opacity:.7;pointer-events:none}.monaco-list-type-filter-message:empty{display:none}.monaco-list-type-filter{cursor:grab}.monaco-list-type-filter.dragging{cursor:grabbing}.monaco-split-view2{position:relative;width:100%;height:100%}.monaco-split-view2>.sash-container{position:absolute;width:100%;height:100%;pointer-events:none}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:initial}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{width:100%;height:100%;white-space:nowrap;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:initial;position:absolute}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{content:" ";position:absolute;top:0;left:0;z-index:5;pointer-events:none;background-color:var(--separator-border)}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;position:relative;height:100%;width:100%;white-space:nowrap}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{width:100%;height:100%;font-weight:700;overflow:hidden;text-overflow:ellipsis}.monaco-table-th,.monaco-table-td{box-sizing:border-box;flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:"";position:absolute;left:calc(var(--sash-size) / 2);width:0;border-left:1px solid transparent}.monaco-table>.monaco-split-view2,.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-tl-row{display:flex;height:100%;align-items:center;position:relative}.monaco-tl-indent{height:100%;position:absolute;top:0;left:16px;pointer-events:none}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{display:inline-block;box-sizing:border-box;height:100%;border-left:1px solid transparent}.monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-twistie,.monaco-tl-contents{height:100%}.monaco-tl-twistie{font-size:10px;text-align:right;padding-right:6px;flex-shrink:0;width:16px;display:flex!important;align-items:center;justify-content:center;transform:translate(3px)}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight,.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight,.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight,.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight,.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.monaco-keybinding>.monaco-keybinding-key{background-color:#ddd6;border:solid 1px rgba(204,204,204,.4);border-bottom-color:#bbb6;box-shadow:inset 0 -1px #bbb6;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px rgb(111,195,223);box-shadow:none;color:#fff}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:solid 1px rgba(51,51,51,.6);border-bottom-color:#4449;box-shadow:inset 0 -1px #4449;color:#ccc}.monaco-text-button{box-sizing:border-box;display:flex;width:100%;padding:4px;text-align:center;cursor:pointer;justify-content:center;align-items:center}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled:focus,.monaco-button.disabled{opacity:.4!important;cursor:default}.monaco-text-button>.codicon{margin:0 .2em;color:inherit!important}.monaco-button-dropdown{display:flex;cursor:pointer}.monaco-button-dropdown>.monaco-dropdown-button{margin-left:1px}.monaco-description-button{flex-direction:column}.monaco-description-button .monaco-button-label{font-weight:500}.monaco-description-button .monaco-button-description{font-style:italic}.monaco-count-badge{padding:3px 6px;border-radius:11px;font-size:11px;min-width:18px;min-height:18px;line-height:11px;font-weight:400;text-align:center;display:inline-block;box-sizing:border-box}.monaco-count-badge.long{padding:2px 3px;border-radius:2px;min-height:auto;line-height:normal}.monaco-progress-container{width:100%;height:5px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:5px;position:absolute;left:0;display:none}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-iteration-count:infinite;animation-timing-function:linear;transform:translateZ(0)}@keyframes progress{0%{transform:translate(0) scaleX(1)}50%{transform:translate(2500%) scaleX(3)}to{transform:translate(4900%) scaleX(1)}}.quick-input-widget{position:absolute;width:600px;z-index:2000;padding:0 1px 1px;left:50%;margin-left:-300px}.quick-input-titlebar{display:flex;align-items:center}.quick-input-left-action-bar{display:flex;margin-left:4px;flex:1}.quick-input-title{padding:3px 0;text-align:center;text-overflow:ellipsis;overflow:hidden}.quick-input-right-action-bar{display:flex;margin-right:4px;flex:1}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:center;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px}.quick-input-header .quick-input-description{margin:4px 2px}.quick-input-header{display:flex;padding:6px 6px 0;margin-bottom:-2px}.quick-input-widget.hidden-input .quick-input-header{padding:0;margin-bottom:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{flex-grow:1;display:flex;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{align-self:center;position:absolute;right:4px;display:flex;align-items:center}.quick-input-count .monaco-count-badge{vertical-align:middle;padding:2px 4px;border-radius:2px;min-height:auto;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{font-size:11px;padding:0 6px;display:flex;height:27.5px;align-items:center}.quick-input-message{margin-top:-1px;padding:5px 5px 2px;overflow-wrap:break-word}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-progress.monaco-progress-container,.quick-input-progress.monaco-progress-container .progress-bit{height:2px}.quick-input-list{line-height:22px;margin-top:6px}.quick-input-widget.hidden-input .quick-input-list{margin-top:0}.quick-input-list .monaco-list{overflow:hidden;max-height:440px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;overflow:hidden;display:flex;height:100%;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-width:1px;border-top-style:solid}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{overflow:hidden;display:flex;height:100%;flex:1}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-rows{overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;height:100%;flex:1;margin-left:5px}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{display:flex;align-items:center}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{opacity:.7;line-height:normal;text-overflow:ellipsis;overflow:hidden}.quick-input-list .monaco-highlighted-label .highlight{font-weight:700}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:8px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:0 2px 2px}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px}.quick-input-list .quick-input-list-entry-action-bar{margin-right:4px}.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none}.monaco-inputbox{position:relative;display:block;padding:0;box-sizing:border-box;font-size:inherit}.monaco-inputbox.idle{border:1px solid transparent}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px}.monaco-inputbox>.ibwrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.ibwrapper>.input{display:inline-block;box-sizing:border-box;width:100%;height:100%;line-height:inherit;border:none;font-family:inherit;font-size:inherit;resize:none;color:inherit}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;-ms-overflow-style:none;scrollbar-width:none;outline:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;margin-top:-1px;word-wrap:break-word}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;flex-shrink:0}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-style:italic}.monaco-icon-label.deprecated{text-decoration:line-through;opacity:.66}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;margin:auto 16px 0 5px;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-keybinding{display:flex;align-items:center;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{display:inline-block;border-style:solid;border-width:1px;border-radius:3px;vertical-align:middle;font-size:11px;padding:3px 5px;margin:0 2px}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{box-sizing:border-box}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{padding:1px 4px}.monaco-editor .monaco-editor-overlaymessage .anchor{width:0!important;height:0!important;border-color:transparent;border-style:solid;z-index:1000;border-width:8px;position:absolute}.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top,.monaco-editor .monaco-editor-overlaymessage.below .anchor.below{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-editor .contentWidgets .codicon-light-bulb,.monaco-editor .contentWidgets .codicon-lightbulb-autofix{display:flex;align-items:center;justify-content:center}.monaco-editor .contentWidgets .codicon-light-bulb:hover,.monaco-editor .contentWidgets .codicon-lightbulb-autofix:hover{cursor:pointer}.monaco-editor .codelens-decoration{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .codelens-decoration>span,.monaco-editor .codelens-decoration>a{user-select:none;-webkit-user-select:none;-ms-user-select:none;white-space:nowrap;vertical-align:sub}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer}.monaco-editor .codelens-decoration .codicon{vertical-align:middle;color:currentColor!important}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.monaco-editor .goto-definition-link{text-decoration:underline;cursor:pointer}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex}.monaco-editor .peekview-widget .head .peekview-title{display:flex;align-items:center;font-size:13px;margin-left:20px;min-width:0}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .meta,.monaco-editor .peekview-widget .head .peekview-title .dirname{white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1;text-align:right;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{margin-right:4px}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-bottom-style:solid;border-top-width:0;border-bottom-width:0;position:relative}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{cursor:pointer;height:100%;display:flex;align-items:center;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-action-bar .action-item.menu-entry .action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-action-bar .action-item.menu-entry .action-label{background-image:var(--menu-entry-icon-light)}.vs-dark .monaco-action-bar .action-item.menu-entry .action-label,.hc-black .monaco-action-bar .action-item.menu-entry .action-label{background-image:var(--menu-entry-icon-dark)}.monaco-dropdown-with-default{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label{background-image:var(--menu-entry-icon-light)}.vs-dark .monaco-dropdown-with-default>.action-container.menu-entry>.action-label,.hc-black .monaco-dropdown-with-default>.action-container.menu-entry>.action-label{background-image:var(--menu-entry-icon-dark)}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;width:100%;text-align:center;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{line-height:23px}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{display:inline-flex;width:100%;height:100%}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-right:12px;margin-left:auto}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-hover{cursor:default;position:absolute;overflow:hidden;z-index:50;user-select:text;-webkit-user-select:text;-ms-user-select:text;box-sizing:initial;animation:fadein .1s linear;line-height:1.5em}.monaco-hover.hidden{display:none}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:500px;word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover p,.monaco-hover .code,.monaco-hover ul{margin:8px 0}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{box-sizing:border-box;border-left:0px;border-right:0px;margin:4px -8px -4px;height:1px}.monaco-hover p:first-child,.monaco-hover .code:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover p:last-child,.monaco-hover .code:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ul,.monaco-hover ol{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:pre-wrap}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px}.monaco-hover .hover-row.status-bar .actions .action-container{margin-right:16px;cursor:pointer}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link:hover,.monaco-hover .hover-contents a.code-link{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{margin-bottom:4px;display:inline-block}.monaco-hover-content .action-container a{-webkit-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{pointer-events:none;opacity:.4;cursor:default}.colorpicker-widget{height:190px;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .colorpicker-hover:focus{outline:none}.colorpicker-header{display:flex;height:24px;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-header .picked-color{width:216px;line-height:24px;cursor:pointer;color:#fff;flex:1;text-align:center}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{width:74px;z-index:inherit;cursor:pointer}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{overflow:hidden;height:150px;position:relative;min-width:220px;flex:1}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{width:9px;height:9px;margin:-5px 0 0 -5px;border:1px solid rgb(255,255,255);border-radius:100%;box-shadow:0 0 2px #000c;position:absolute}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .hue-strip{position:relative;margin-left:8px;cursor:grab;background:linear-gradient(to bottom,#ff0000 0%,#ffff00 17%,#00ff00 33%,#00ffff 50%,#0000ff 67%,#ff00ff 83%,#ff0000 100%)}.colorpicker-body .opacity-strip{position:relative;margin-left:8px;cursor:grab;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{position:absolute;top:0;left:-2px;width:calc(100% + 4px);height:4px;box-sizing:border-box;border:1px solid rgba(255,255,255,.71);box-shadow:0 0 1px #000000d9}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;vertical-align:text-top;margin-right:4px}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{position:absolute;white-space:pre;user-select:text;-webkit-user-select:text;-ms-user-select:text;padding:8px 12px 0 20px}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{opacity:.6;color:inherit}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer}.monaco-editor .snippet-placeholder{min-width:2px;outline-style:solid;outline-width:1px}.monaco-editor .finish-snippet-placeholder{outline-style:solid;outline-width:1px}.monaco-editor .suggest-widget{width:430px;z-index:40;display:flex;flex-direction:column}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-widget,.monaco-editor .suggest-details{flex:0 1 auto;width:100%;border-style:solid;border-width:1px}.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-black .suggest-details{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{box-sizing:border-box;display:none;flex-flow:row nowrap;justify-content:space-between;width:100%;font-size:80%;padding:0 4px;border-top:1px solid transparent;overflow:hidden}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{opacity:.5;color:inherit}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{display:flex;-mox-box-sizing:border-box;box-sizing:border-box;padding-right:10px;background-repeat:no-repeat;background-position:2px 2px;white-space:nowrap;cursor:pointer;touch-action:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;overflow:hidden;text-overflow:ellipsis;white-space:pre;justify-content:space-between}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;opacity:1;font-size:14px;cursor:pointer}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{overflow:hidden;text-overflow:ellipsis;opacity:.6}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{margin-left:12px;opacity:.4;font-size:85%;line-height:initial;text-overflow:ellipsis;overflow:hidden;align-self:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-shrink:1;flex-grow:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{overflow:hidden;flex-shrink:4;max-width:70%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;position:absolute;right:10px;width:18px;height:18px;visibility:hidden}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{display:block;height:16px;width:16px;margin-left:2px;background-repeat:no-repeat;background-size:80%;background-position:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{display:flex;align-items:center;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{margin:0 0 0 .3em;border:.1em solid #000;width:.7em;height:.7em;display:inline-block}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{display:flex;flex-direction:column;cursor:default}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2;overflow:hidden;text-overflow:ellipsis;opacity:.7;white-space:pre;margin:0 24px 0 0;padding:4px 0 12px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{padding:0;white-space:initial;min-height:calc(1rem + 8px)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{white-space:pre-wrap;word-wrap:break-word}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ul,.monaco-editor .suggest-details ol{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{display:inline-block;cursor:pointer;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{opacity:0;font-size:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text{font-style:italic}.monaco-editor.vs .dnd-target{border-right:2px dotted black;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #AEAFAD;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines,.monaco-editor.hc-black.mac.mouse-default .view-lines{cursor:default}.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines,.monaco-editor.hc-black.mac.mouse-copy .view-lines{cursor:copy}.monaco-custom-checkbox{margin-left:2px;float:left;cursor:pointer;overflow:hidden;opacity:.7;width:20px;height:20px;border:1px solid transparent;padding:1px;box-sizing:border-box;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-custom-checkbox:hover,.monaco-custom-checkbox.checked{opacity:1}.hc-black .monaco-custom-checkbox,.hc-black .monaco-custom-checkbox:hover{background:none}.monaco-custom-checkbox.monaco-simple-checkbox{height:18px;width:18px;border:1px solid transparent;border-radius:3px;margin-right:9px;margin-left:0;padding:0;opacity:1;background-size:16px!important}.monaco-custom-checkbox.monaco-simple-checkbox:not(.checked):before{visibility:hidden}.monaco-editor .find-widget{position:absolute;z-index:35;height:33px;overflow:hidden;line-height:19px;transition:transform .2s linear;padding:0 4px;box-sizing:border-box;transform:translateY(calc(-100% - 10px))}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:4px 0 0 17px;font-size:12px;display:flex}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget>.replace-part .replace-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;display:flex;flex:1}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{display:flex;flex:initial;margin:0 0 0 3px;padding:2px 0 0 2px;height:25px;vertical-align:middle;box-sizing:border-box;text-align:center;line-height:23px}.monaco-editor .find-widget .button{width:16px;height:16px;padding:3px;border-radius:5px;flex:initial;margin-left:3px;background-position:center center;background-repeat:no-repeat;cursor:pointer;display:flex;align-items:center;justify-content:center}.monaco-editor .find-widget .codicon-find-selection{width:22px;height:22px;padding:3px;border-radius:5px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{position:absolute;top:0;left:3px;width:18px;height:100%;border-radius:0;box-sizing:border-box}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{opacity:.3;cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{position:relative;display:flex;vertical-align:middle;flex:auto;flex-grow:0;flex-shrink:0}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important}.monaco-editor .find-widget .monaco-sash{left:0!important}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:rgba(253,255,0,.8)}to{background:transparent}}@keyframes monaco-findInput-highlight-1{0%{background:rgba(253,255,0,.8)}99%{background:transparent}}@keyframes monaco-findInput-highlight-dark-0{0%{background:rgba(255,255,255,.44)}to{background:transparent}}@keyframes monaco-findInput-highlight-dark-1{0%{background:rgba(255,255,255,.44)}99%{background:transparent}}.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-collapsed{cursor:pointer;opacity:0;transition:opacity .5s;display:flex;align-items:center;justify-content:center;font-size:140%;margin-left:2px}.monaco-editor .margin-view-overlays:hover .codicon,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons{opacity:1}.monaco-editor .inline-folded:after{color:gray;margin:.1em .2em 0;content:"\22ef";display:inline;line-height:1em;cursor:pointer}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{cursor:pointer}.monaco-editor .parameter-hints-widget{z-index:10;display:flex;flex-direction:column;line-height:1.5em}.monaco-editor .parameter-hints-widget>.phwrapper{max-width:440px;display:flex;flex-direction:row}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.visible{transition:left .05s ease-in-out}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .monaco-scrollable-element,.monaco-editor .parameter-hints-widget .body{display:flex;flex:1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:initial}.monaco-editor .parameter-hints-widget .docs .markdown-docs code{font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .docs .code{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs code{border-radius:3px;padding:0 .4em}.monaco-editor .parameter-hints-widget .controls{display:none;flex-direction:column;align-items:center;min-width:22px;justify-content:flex-end}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{width:16px;height:16px;background-repeat:no-repeat;cursor:pointer}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{text-align:center;height:12px;line-height:12px;opacity:.5;font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .signature .parameter.active{font-weight:700;text-decoration:underline}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor .rename-box{z-index:100;color:inherit}.monaco-editor .rename-box.preview{padding:3px 3px 0}.monaco-editor .rename-box .rename-input{padding:3px;width:calc(100% - 6px)}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .accessibilityHelpWidget{padding:10px;vertical-align:middle;overflow:scroll}.monaco-editor .iPadShowKeyboard{width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;resize:none;overflow:hidden;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #F6F6F6;border-radius:4px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #252526}.monaco-editor .tokens-inspect-widget{z-index:50;user-select:text;-webkit-user-select:text;-ms-user-select:text;padding:10px}.tokens-inspect-separator{height:1px;border:0}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{font-weight:400;font-size:60%;float:right}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)} diff --git a/magic-editor/src/main/resources/magic-editor/assets/style.63f02940.css b/magic-editor/src/main/resources/magic-editor/assets/style.63f02940.css deleted file mode 100644 index f6c1b441..00000000 --- a/magic-editor/src/main/resources/magic-editor/assets/style.63f02940.css +++ /dev/null @@ -1 +0,0 @@ -html,body,#app{width:100%;height:100%;margin:0!important}@font-face{font-family:JetBrainsMono;src:url(./JetBrainsMono-Regular.bceff071.woff2) format("woff2");font-weight:100;font-style:normal}@font-face{font-family:PoetsenOne;src:url(./PoetsenOne.14047964.woff2) format("woff2");font-weight:100;font-style:normal}.magic-editor{width:100%;height:100%;overflow:auto;display:flex;flex-direction:column;position:relative;min-width:1200px;min-height:600px;font-size:12px;letter-spacing:0px;background-color:var(--main-background-color);cursor:default;color:var(--main-color);outline:0;--main-color: #000;--main-background-color: #f2f2f2;--main-border-color: #cdcdcd;--main-hover-background-color: #d9d9d9;--main-hover-icon-background-color: #d9d9d9;--main-selected-background-color: #bdbdbd;--main-selected-color: #000;--main-icon-color: #6e6e6e;--navbar-body-background-color: #fff;--navbar-body-border-color: #c0c0c0;--header-title-color: #000;--header-default-color: #6e6e6e;--empty-background-color: #b6b6b6;--empty-color: #505050;--empty-key-color: #5263a0;--tree-hover-background-color: #d4d4d4;--tree-icon-color: #aeb9c0;--table-border-color: #bdbdbd;--input-border-color: #bdbdbd;--input-background-color: #fff;--input-focus-color: #0784de;--dialog-border-color: #707070;--dialog-shadow-color: #cfcfcf;--button-border-color: #adadad;--button-background-color: #e3e3e3;--button-hover-border-color: #99a0a5;--button-hover-background-color: #e3f1fa;--button-disabled-color: #bdbdbd;--select-background-color: #e3e3e3;--select-hover-background-color: #e3f1fa;--select-option-background-color: #fff;--select-option-border-color: #808080;--select-option-hover-background-color: #1a7dc4;--select-option-hover-color: #fff;--select-inputable-background-color: #fff;--tab-selected-background-color: #fff;--icon-debug-color: #59A869;--icon-step-color: #389FD6;--data-type-default-color: #000;--data-type-string-color: #008000;--data-type-integer-color: #0000ff;--data-type-number-color: #0000ff;--data-type-byte-color: #0000ff;--data-type-long-color: #0000ff;--data-type-float-color: #0000ff;--data-type-double-color: #0000ff;--data-type-short-color: #0000ff;--data-type-boolean-color: #000080;--data-type-class-color: #660e7a;--data-type-key-color: #AC0039;--breakpoints-background-color: #db5860;--debug-line-background-color: #2154A6;--breakpoint-line-background-color: #FAEAE6;--run-log-background-color: #fff;--log-color-info: #00cd00;--log-color-warn: #A66F00;--log-color-debug: #00cccc;--log-color-error: #cd0000;--log-color-trace: #0000EE;--log-color-cyan: #00CCCC;--log-color-link: #006DCC;--todo-color: #008dde;--message-em-color: #007F31;--checkbox-background-color: #fff;--checkbox-text-color: #fff;--checkbox-border-color: #b0b0b0;--checkbox-selected-boder-color: #4F9EE3;--checkbox-selected-background-color: #4F9EE3;--resource-label-color: #000;--resource-span-color: #999;--scollbar-color: rgba(170, 170, 170, .7);--scollbar-background: rgba(194, 194, 194, .1);--scollbar-thumb-background: rgba(170, 170, 170, .4);--scollbar-thumb-hover-background: rgba(170, 170, 170, .7);--scollbar-scrollbar-corner-background: rgba(194, 194, 194, .1);--magic-navbar-vertical-width: 22px;--magic-navbar-vertical-title-display: block;--magic-navbar-vertical-icon-size: 1.3em;--magic-navbar-vertical-header-padding: 8px 3px;--magic-navbar-vertical-header-margin: 0;--magic-navbar-vertical-header-border-radius: 0;--magic-navbar-vertical-header-border-width: 1px;--magic-resource-header-icon-display: inline-flex;--magic-header-height: 30px;--magic-header-icon-size: 24px;--magic-panel-toolbar-width: 24px;--magic-panel-toolbar-size: 18px;--tab-selected-border-color: #4083c9;--magic-navbar-horizontal-height: 24px;--magic-input-height: 22px;--magic-table-row-height: 24px;--input-focus-border-width: 1px;--input-border-radius: 0px;--button-hover-color: var(--main-color);--button-border-hover-color: var(--button-border-color);--button-height: 22px;--magic-header-logo-padding: 25px;--magic-header-logo-background-size: 16px;--magic-header-logo-background-position: 4px 7px;--context-menu-background: var(--main-background-color);--context-menu-padding: 0;--context-menu-item-border-radius: 0;--tooltip-background-color: #27282E;--tooltip-color: #fff;--tooltip-border-color: transparent}.magic-editor,.magic-editor .monaco-editor,.magic-log pre,.magic-input,.magic-dialog pre{font-family:JetBrainsMono,Consolas,Courier New,\5fae\8f6f\96c5\9ed1}.magic-editor *{box-sizing:border-box;padding:0;margin:0}.magic-editor .none-select{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none}.magic-editor ul{list-style:none;margin:0;padding:0}.magic-editor *{scrollbar-color:var(--scollbar-thumb-background) var(--scollbar-thumb-background);scrollbar-track-color:var(--scollbar-thumb-background);-ms-scrollbar-track-color:var(--scollbar-thumb-background);scrollbar-width:thin}.magic-editor *::-webkit-scrollbar{width:5px;height:5px;background:var(--scollbar-background)}.magic-editor *::-webkit-scrollbar-thumb{border-radius:3px;background:var(--scollbar-thumb-background)}.magic-editor *::-webkit-scrollbar-thumb:hover{background:var(--scollbar-thumb-hover-background)}.magic-editor *::-webkit-scrollbar-corner{background:var(--scollbar-scrollbar-corner-background)}.magic-header .magic-logo,.magic-dialog .magic-dialog-header{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAAB3RJTUUH5QgUECk1a4VTIAAABdZJREFUeNrtm11IFF0cxp+Z1d1NdFtNbW3FDa1WoQ1hCcrUzPTOgkARNnpjuxHrovemu+jqvQmKlCC8DLooefMiQUWFFGLNj9KMgihBjSyyze+lmXHbfS9ilz17zqy7mp5edh4YmHnOmTP/85vznzlnPwTjdSWIJJbIOwDe0gDwDoC3kh5ACsuU/tHzjmtbJKRbYPj7I+El/QjQAPAOgLc0ALwD4C0NAO8AeEsDwDsA3kpJ9IS7d+8iPz+f8JaXl9Hb24tHjx4hGGSvruvr63H+/HnKX1tbw9OnT3H//n3VcwFAFEW0trYS115YWEBraytev369eQLG60owegOgun39+jXo9/uZ2507d1TP83g8quf5/f5gc3NzzOu6XC7meV6vN2i1WmOeG9qEdAvV14RTYNeuXaplV65cQXFxMeWbTCY4nc6Y7Z46dUq1TBAEXLt2jVlmNpvR1NS06QGQEAC9Xo+0tDT1xkQRDQ0NlF9ZWYmUlNjZZjQaVcuqqqrgcDhUy+vq6nYGwJ49ezasU1FRQXmx7m5IkiSpll2+fJk4lmWZOHY4HHHFtmUAWVlZlBcdTGlpKVWnurp6w876fD7mNa1WK86cOUN47e3txLEgCEzwvx0Ai/Lz588pSBaLJXycm5uLw4cPE3WGh4epdlZWVpjXdLvdRPooioK2tjaqXmVl5fYDyM7OprzBwUHKO3ToUHj/9OnTEAQhfOz1evH27VvqnOXlZTo4UcSlS5cIb2hoCK9evYLf7/8zAExOTmJtbY3wDh48SACIVGdnJ8xmM9XO4uIi5dXU1KCgoIDw+vr6oCgKpqenCf/IkSPIzMzceQCSJGFiYoLwDhw4QHQiUh0dHcjJyYkLgNvtpry+vj4AwLt378iOiCLKy8u3FwDrGaAoCl6+fMkEUFJSQszclpaWMDAwgNzc3A0BZGZm4uzZs4Q3Pz+PyclJJgBgc2mQEADWnZNlGePj44QXSoHa2lrC7+rqgqIoxENSDUBjYyMMBgPh9ff3h6fLvwtAQmsBVgrIsswcATqdjhr+T548gU6niysFXC4XVcdms6GlpQUAqPUI8OsVbDKZVN8oWwbASgFZlvHhwwesrKzAZDIB+DWrs9vtxB358eMHent7sXfvXuh0upgA9u/fj+PHj1N1ysvLY+a5TqfDiRMn0NPTE3effsszIBAIUA9Ct9uN9PT08HF/fz98Ph+sViuz7UgA9fX1xKszESU6IdoygPX1dQDA2NgY4Ue/vzs6OgAA+/bto9qQZZmYCZ47d25TnQeQ8Jsg7hTQ6/XIyMigfEVRAACjo6OEv3v37vC+JEno7OwEAOTl5VFtfP/+PbxvsVhw9OhRqs7Y2Bi+fftGeHa7HUVFRYTndDphNBpjri02BSCU39EKjYDoKXGkurq6sLq6Gu5gLAC1tbUQRXpgulwuavJz9epV3L59m/AMBgOcTic8Hk9c/Yo7BdSWqyEAX758wfv375l1Hj58GN5nLagWFhbC+2VlZVT53Nwc1XkAePPmDfN6x44di7db8QPwer3MYRU5Jw/N0qI7193dTbQTrcgRwJomP3v2jBmTx+PB/Pw85W/04cumAEiShBs3bhAdDgQC4WcAANy8eZN6GD548ICo09bWRt25yNy+desWPn/+HBcASZJw8eJFCgJrjqAmgfUboVhfj2dlZcFut0Ov18Pn8+HFixdUncLCQlgsFiiKgomJCfz8+ZOkLoooLi5GdnY2BEHA1NQU5ubmwuWpqalwOBzIyMhAIBDAyMgIATFaqampKCkpgdlshiAImJ2dxczMDN1ZxtfjCQP4P0v7fQBDGgDeAfCWBoB3ALylAeAdAG/FtRj668IF5geU26V/Hz/GvXv3/hwANpsNVSdP7hiA6A9XtlNJnwJJDyCuFFhdXcWnT592LKilpaUdu5a2GOIdFG9pAHgHwFsaAN4B8JYGgHcAvJX0AJgzQcFs4x3XtkhIo3+XIGj/HU5yaQB4B8Bb/wGL33wfrIpOmgAAACx6VFh0ZGF0ZTpjcmVhdGUAAAiZMzIwMtQ1sNA1MggxsLAyMbQyNdYGMgwMAEGtBRRid74MAAAALHpUWHRkYXRlOm1vZGlmeQAACJkzMjAy1DWw0DUyCDGwsDIxtDI11gYyDAwAQa0FFGA7xkMAAAAASUVORK5CYII=);background-size:16px}.magic-data-type{color:var(--data-type-default-color)}.magic-data-type.string{color:var(--data-type-string-color);font-weight:700}.magic-data-type.integer{color:var(--data-type-integer-color)}.magic-data-type.number{color:var(--data-type-number-color)}.magic-data-type.double{color:var(--data-type-double-color)}.magic-data-type.float{color:var(--data-type-float-color)}.magic-data-type.short{color:var(--data-type-short-color)}.magic-data-type.long{color:var(--data-type-long-color)}.magic-data-type.byte{color:var(--data-type-byte-color)}.magic-data-type.boolean{color:var(--data-type-boolean-color);font-weight:700}.magic-data-type.class{color:var(--data-type-class-color)}.magic-icon.magic-icon-difference{fill:#389fd6!important}.magic-status-bar .message em,.magic-event em{color:var(--message-em-color);font-style:normal;font-weight:700}.magic-editor .magic-monaco-editor[data-mode-id=magicscript] .monaco-editor .margin-view-overlays .codicon-folding-expanded,.magic-editor .magic-monaco-editor[data-mode-id=magicscript] .monaco-editor .margin-view-overlays .codicon-folding-collapsed{margin-left:12px!important}.magic-editor [data-title]{position:relative}.magic-editor [data-title]:hover{overflow:visible}.magic-editor [data-title]:hover:after{opacity:1;transition:all .1s ease .5s;visibility:visible}.magic-editor [data-title]:after{content:attr(data-title);background-color:var(--tooltip-background-color);color:var(--tooltip-color);font-size:12px;position:absolute;height:30px;line-height:30px;padding:0 10px;white-space:nowrap;box-shadow:0 0 4px #00000029;z-index:99999;visibility:hidden;opacity:0;border:1px solid var(--tooltip-border-color);box-sizing:border-box}.magic-editor [data-title][data-tooltip-direction=right]:after{transform:translate(100%,-50%);right:-5px;top:0;margin-top:50%}.magic-editor [data-title][data-tooltip-direction=top]:after{top:-5px;left:0;transform:translate(-50%,-100%);margin-left:50%}.magic-editor [data-title][data-tooltip-direction=left]:after{transform:translate(-100%,-50%);top:0;left:-5px;margin-top:50%}.magic-editor [data-title][data-tooltip-direction=left-top]:after{transform:translate(-100%,-100%);top:-5px;left:0;margin-left:100%}.magic-editor [data-title][data-tooltip-direction=left-bottom]:after{transform:translate(-100%,100%);bottom:-5px;left:0;margin-top:50%;margin-left:100%}.magic-editor [data-title][data-tooltip-direction=bottom]:after{bottom:0;left:0;transform:translate(-50%,100%);margin-left:50%}.magic-context-menu[data-v-75aac978]{position:absolute;z-index:999999;background-color:var(--context-menu-background);border:1px solid var(--main-border-color);padding:var(--context-menu-padding)}.magic-context-menu li[data-v-75aac978]{height:24px;line-height:24px;padding:0 10px;cursor:pointer;display:flex;border-radius:var(--context-menu-item-border-radius)}.magic-context-menu li>span[data-v-75aac978],.magic-context-menu li>label[data-v-75aac978]{cursor:pointer;white-space:pre}.magic-context-menu li.divided[data-v-75aac978]{margin-bottom:5px;position:relative}.magic-context-menu li.divided[data-v-75aac978]:after{content:"";height:2px;width:100%;border-bottom:1px solid var(--main-border-color);margin-bottom:2px;position:absolute;left:0;top:100%}.magic-context-menu .magic-context-menu-icon[data-v-75aac978]{display:inline-block;text-align:center;margin-right:8px;width:13px}.magic-context-menu li[data-v-75aac978]:hover{background-color:var(--select-option-hover-background-color)}.magic-context-menu li:hover>span[data-v-75aac978],.magic-context-menu li:hover>label[data-v-75aac978]{color:var(--select-option-hover-color)}.magic-context-menu li:hover>span[data-v-75aac978] .magic-icon{fill:var(--select-option-hover-color)}.magic-context-menu li:hover .magic-context-menu[data-v-75aac978]{display:block}.magic-context-menu li .magic-context-menu[data-v-75aac978]{left:100%;margin-top:-1px;display:none}.magic-context-menu li .magic-context-menu-icon.right[data-v-75aac978]{float:right;margin-right:0;margin-left:5px}.magic-empty[data-v-70308d5a]{width:100%;height:100%;position:relative}.magic-empty p[data-v-70308d5a]{text-align:center;width:100%;height:24px;line-height:24px;top:50%;position:relative;margin-top:-12px}.magic-loading[data-v-19c11c56]{width:100%;height:100%;position:relative;top:0;left:0}.magic-loading p[data-v-19c11c56]{position:absolute;text-align:center;width:100%;top:50%;margin-top:-20px}.magic-loading .icon[data-v-19c11c56]{width:20px;margin:0 auto;animation:rotate-19c11c56 1s linear infinite;display:block}@keyframes rotate-19c11c56{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.magic-monaco-editor[data-v-59a04eab],.magic-monaco-editor[data-v-9b3f02a8]{flex:1;overflow:hidden}.magic-monaco-editor[data-v-9b3f02a8] .breakpoints{background:var(--breakpoints-background-color);width:10px!important;height:10px!important;right:0px!important;margin-left:12px;top:5px;border-radius:5px}.magic-monaco-editor[data-v-9b3f02a8] .debug-line{background:var(--debug-line-background-color);color:#fff!important}.magic-monaco-editor[data-v-9b3f02a8] .breakpoint-line{background:var(--breakpoint-line-background-color)}.magic-resizer-x[data-v-032bc45e],.magic-resizer-y[data-v-032bc45e]{display:flex;position:relative;overflow:hidden;transition:none}.magic-resizer-event[data-v-032bc45e]{position:absolute;z-index:20;--width: 100%;--height: 100%}.magic-resizer-event[data-v-032bc45e]:after{content:" ";position:fixed;z-index:9999}.magic-resizer-x .magic-resizer-event[data-v-032bc45e]{width:15px;height:100%;right:-15px;cursor:col-resize}.magic-resizer-x .magic-resizer-event[data-v-032bc45e]:after{width:10px;height:var(--height)}.magic-resizer-x .magic-resizer-event.reverse[data-v-032bc45e]{right:unset;left:-5px}.magic-resizer-x[data-v-032bc45e]{height:100%}.magic-resizer-y .magic-resizer-event[data-v-032bc45e]{height:10px;width:100%;top:-5px;cursor:row-resize}.magic-resizer-y .magic-resizer-event[data-v-032bc45e]:after{height:10px;width:var(--width)}.magic-navbar-item[data-v-30388e35]{height:100%;width:100%}svg[data-v-15383e92]{width:1.3em;height:1.3em;vertical-align:-.25em;overflow:hidden;fill:var(--main-icon-color)}.magic-navbar{display:flex;background-color:var(--main-background-color);transition:.3s}.magic-navbar .magic-navbar-body{background-color:var(--navbar-body-background-color);overflow:auto}.magic-navbar .magic-navbar-header li:hover{background-color:var(--main-hover-background-color)}.magic-navbar .magic-navbar-header li.selected{background-color:var(--main-selected-background-color);color:var(--main-selected-color)}.magic-navbar .magic-navbar-header li.selected svg text{fill:var(--main-selected-color)}.magic-navbar .magic-navbar-header li svg text{letter-spacing:0px;font-size:10px}.magic-navbar__vertical.reverse{flex-direction:row-reverse}.magic-navbar__vertical .magic-navbar-header li{display:flex;flex-direction:column;align-items:center;overflow:hidden;padding:var(--magic-navbar-vertical-header-padding);margin:var(--magic-navbar-vertical-header-margin);cursor:pointer;border-bottom-color:var(--main-border-color);border-bottom-style:solid;border-bottom-width:var(--magic-navbar-vertical-header-border-width);border-radius:var(--magic-navbar-vertical-header-border-radius)}.magic-navbar__vertical .magic-navbar-header{width:var(--magic-navbar-vertical-width);height:100%;letter-spacing:2px;text-align:center;padding:0;border-right:1px solid var(--main-border-color)}.magic-navbar__vertical.reverse .magic-navbar-header{border-left:1px solid var(--main-border-color);border-right:none}.magic-navbar__vertical.reverse .magic-navbar-header li{display:flex;flex-direction:column-reverse}.magic-navbar__vertical .magic-navbar-header li{line-height:14px;word-break:break-all}.magic-navbar__vertical .magic-navbar-body{flex:1}.magic-navbar__vertical .magic-navbar-body{border-right:1px solid var(--navbar-body-border-color)}.magic-navbar__vertical.reverse .magic-navbar-body{border-left:1px solid var(--navbar-body-border-color);border-right:none}.magic-navbar__horizontal>ul{width:100%}.magic-navbar__horizontal>ul li{display:inline-flex;flex-direction:row-reverse;padding:0 8px;height:var(--magic-navbar-horizontal-height);line-height:var(--magic-navbar-horizontal-height);cursor:pointer;color:var(--main-color)}.magic-navbar__horizontal>ul li svg.magic-icon{height:100%;margin-right:4px}.magic-navbar__horizontal>ul{border-top:1px solid var(--main-border-color)}.magic-navbar.magic-navbar__vertical .magic-navbar-title{padding-bottom:4px;display:var(--magic-navbar-vertical-title-display)}.magic-navbar.magic-navbar__vertical>ul li svg.magic-icon{width:var(--magic-navbar-vertical-icon-size);height:var(--magic-navbar-vertical-icon-size)}.magic-navbar.magic-navbar__vertical.reverse .magic-navbar-title{padding-top:4px;padding-bottom:0;display:var(--magic-navbar-vertical-title-display)}.magic-tab{width:100%;overflow:hidden;flex-wrap:nowrap;white-space:nowrap;transition:.3s}.magic-tab ul{overflow-x:auto}.magic-tab ul li{display:inline-block;cursor:pointer;padding:0 10px;height:24px;line-height:24px}.magic-tab ul li.selected,.magic-tab ul li:hover,.magic-tab.magic-script-tab ul li.selected:hover,.magic-tab ul li.draggable-target-item{background-color:var(--main-hover-background-color)}.magic-tab.magic-script-tab{border-bottom:1px solid var(--main-border-color);height:30px;position:absolute}.magic-tab.magic-script-tab ul li{height:30px;line-height:30px;border-bottom:3px solid transparent}.magic-tab.magic-script-tab ul li.selected{border-bottom-color:var(--tab-selected-border-color);background-color:var(--tab-selected-background-color)}.magic-table{display:flex;flex-direction:column;box-sizing:border-box}.magic-table .magic-table-body{flex:1;overflow:auto}.magic-table .magic-table-header,.magic-table .magic-table-body .magic-table-row{display:flex;height:var(--magic-table-row-height);line-height:var(--magic-table-row-height);border-bottom:1px solid var(--main-border-color)}.magic-table .magic-table-body .magic-table-row:hover{background-color:var(--main-hover-background-color)}.magic-table .magic-table-column{flex:1;display:inline-flex}.magic-table .magic-table-column span:last-child{flex:1;overflow:hidden;text-overflow:ellipsis;width:0px;white-space:pre}.magic-table .magic-table-column .magic-select{width:100%}.magic-table__border .magic-table-body .magic-table-row{border-bottom:1px solid var(--table-border-color)}.magic-table__border .magic-table-column:not(:last-child){border-right:1px solid var(--table-border-color)}.magic-tree{position:relative;overflow:auto}.magic-tree>ul{position:absolute;top:0;left:0}.magic-tree .magic-tree-item{height:20px;line-height:20px;transition:.3s;word-break:break-all;white-space:nowrap}.magic-tree .magic-tree-item:hover,.magic-tree .magic-tree-item.selected,.magic-tree .magic-tree-item.draggable-target-item{background-color:var(--tree-hover-background-color)}.magic-tree .magic-tree-item .magic-icon{fill:var(--tree-icon-color);margin-right:2px}.magic-tree ul{max-height:99999px;min-width:100%}.magic-tree li{white-space:nowrap;word-break:break-all}.magic-tree .hide{opacity:0;max-height:0;position:relative}.magic-tree svg:not(.root) .magic-icon-datasource{fill:#089910}.magic-dialog[data-v-3e8f0d71]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:999999;text-align:center}.magic-dialog__shade[data-v-3e8f0d71]{background-color:#0000004d}.magic-dialog[data-v-3e8f0d71]:before{content:"";display:inline-block;height:100%;vertical-align:middle;margin-right:-.25em}.magic-dialog-main[data-v-3e8f0d71]{background:var(--main-background-color);border:1px solid var(--dialog-border-color);display:inline-block;vertical-align:middle;position:relative;min-width:250px;box-shadow:0 0 8px var(--dialog-shadow-color);max-width:800px;color:var(--main-color);transition:none}.magic-dialog-header[data-v-3e8f0d71]{height:30px;line-height:30px;padding-left:30px;padding-right:75px;background-position:7px 7px;background-repeat:no-repeat;text-align:left}.magic-dialog-header.moveable[data-v-3e8f0d71]{cursor:move}.magic-dialog-header span[data-v-3e8f0d71]{display:inline-block;width:30px;position:absolute;right:0;text-align:center;cursor:pointer;font-size:12px;height:30px;line-height:30px}.magic-dialog-header span[data-v-3e8f0d71]:hover{background-color:#e81123}.magic-dialog-header span:hover .magic-icon[data-v-3e8f0d71]{fill:#fff}.magic-dialog-body[data-v-3e8f0d71]{text-align:left;word-break:break-all}.magic-dialog[data-v-3e8f0d71] .magic-loading{min-width:200px;min-height:200px}.magic-notify[data-v-4a37ceea]{position:absolute;right:40px;bottom:65px;transition:.5s;z-index:999999}.magic-notify .magic-notify-item[data-v-4a37ceea]{background-color:var(--main-background-color);padding:5px;position:relative;border-radius:2px;border:1px solid var(--main-border-color);max-width:280px;box-shadow:0 0 8px var(--dialog-shadow-color)}.magic-notify .magic-notify-item[data-v-4a37ceea]:not(:first-child){margin-top:5px}.magic-notify .magic-notify-item .magic-icon-close[data-v-4a37ceea]{font-size:12px}.magic-notify .magic-notify-item .close[data-v-4a37ceea]{position:absolute;top:2px;right:2px;display:none}.magic-notify .magic-notify-item h3[data-v-4a37ceea]{font-size:12px;height:20px;line-height:20px;display:flex;align-items:center}.magic-notify .magic-notify-item h3 svg[data-v-4a37ceea]{vertical-align:middle;margin-right:2px}.magic-notify .magic-notify-item:hover .close[data-v-4a37ceea]{display:block}.magic-notify .magic-notify-item p[data-v-4a37ceea]{padding:5px 5px 5px 16px}.magic-notify .magic-notify-item .magic-button-group[data-v-4a37ceea]{padding-left:11px}.magic-button-group[data-v-70c60ab6] .magic-button:not(:last-child){margin-right:10px}.magic-button-group.right[data-v-70c60ab6]{text-align:right}.magic-button-group.left[data-v-70c60ab6]{text-align:left}.magic-button-group.center[data-v-70c60ab6]{text-align:center}.magic-button[data-v-d216a404]{height:var(--button-height);line-height:var(--button-height);background-color:var(--button-background-color);text-align:center;padding:0 15px;border:1px solid var(--button-border-color);outline:0;cursor:pointer;color:var(--main-color)}.magic-button.link[data-v-d216a404]{background-color:transparent;color:var(--log-color-link);border:none;padding:0 5px}.magic-button.active[data-v-d216a404],.magic-button[data-v-d216a404]:hover:not(.link){background-color:var(--button-hover-background-color);border-color:var(--button-hover-border-color);color:var(--button-hover-color);border-color:var(--button-border-hover-color)}.magic-checkbox[data-v-61c815ba]{width:100%;height:100%;text-align:center;display:inline-block}.magic-checkbox input[data-v-61c815ba]{display:none}.magic-checkbox input+label[data-v-61c815ba]{position:relative;color:#c9c9c9;font-size:12px;height:var(--magic-input-height);line-height:var(--magic-input-height);width:var(--magic-input-height);user-select:none;display:inline-block}.magic-checkbox input+label[data-v-61c815ba]:after{display:inline-block;background-color:var(--checkbox-background-color);border:1px solid var(--checkbox-border-color);content:"";width:calc(var(--magic-input-height) - 8px);height:calc(var(--magic-input-height) - 8px);line-height:calc(var(--magic-input-height) - 8px);position:absolute;top:4px;left:4px;text-align:center;font-size:12px;color:var(--checkbox-text-color)}.magic-checkbox input:checked+label[data-v-61c815ba]:after{content:"\2714";background-color:var(--checkbox-selected-background-color);border-color:var(--checkbox-selected-border-color)}.magic-checkbox input+label.checkedHalf[data-v-61c815ba]:after{content:"\2501"}.magic-file[data-v-a16f8c8a]{width:100%;position:relative}.magic-file .magic-icon[data-v-a16f8c8a]{position:absolute;right:4px;top:0;height:var(--magic-input-height);line-height:var(--magic-input-height)}.magic-input[data-v-15b9b158]{height:var(--magic-input-height);line-height:var(--magic-input-height);border-radius:0;outline:0;border:1px solid transparent;border-radius:var(--input-border-radius);margin:0;padding:0 0 0 5px;background-color:var(--input-background-color);color:var(--main-color)}.magic-input[data-v-15b9b158]:autofill{background:var(--input-background-color)}.magic-input[data-v-15b9b158]:-webkit-autofill,.magic-input[data-v-15b9b158]:-webkit-autofill:hover,.magic-input[data-v-15b9b158]:-webkit-autofill:focus,.magic-input[data-v-15b9b158]:-webkit-autofill:active{transition:background-color 5000s;-webkit-text-fill-color:var(--main-color)!important}.magic-input[data-v-15b9b158]:focus{border-color:var(--input-focus-color);border-width:var(--input-focus-border-width)}.magic-input__border[data-v-15b9b158]{border-color:var(--input-border-color)}.magic-input[data-v-15b9b158]::-webkit-outer-spin-button,.magic-input[data-v-15b9b158]::-webkit-inner-spin-button{-webkit-appearance:none}.magic-input[type=number][data-v-15b9b158]{-moz-appearance:textfield}.magic-select[data-v-9b6dc9a6]{position:relative;display:inline-block;background:var(--select-background-color);height:var(--magic-input-height);line-height:var(--magic-input-height);width:80px;font-size:12px;text-align:left}.magic-select.inputable[data-v-9b6dc9a6]{background:var(--select-inputable-background-color);border-color:var(--select-inputable-border-color)}.magic-select.border[data-v-9b6dc9a6]{border:1px solid var(--input-border-color)}.magic-select input[data-v-9b6dc9a6]{background:none;border:none;height:var(--magic-input-height);line-height:var(--magic-input-height);border-radius:0;outline:0;padding-left:5px;width:100%;color:var(--main-color)}.magic-select span[data-v-9b6dc9a6]{height:var(--magic-input-height);line-height:var(--magic-input-height);border-radius:0;outline:0;padding-left:5px}.magic-select[data-v-9b6dc9a6]:hover:not(.inputable){background:var(--select-hover-background-color)}.magic-select .magic-icon[data-v-9b6dc9a6]{position:absolute;right:5px;height:100%}.magic-select ul[data-v-9b6dc9a6]{display:block;position:fixed;z-index:10;background:var(--select-option-background-color);border:1px solid var(--select-option-border-color);margin-top:-2px;padding:0;box-sizing:content-box;margin-left:-1px}.magic-select ul li[data-v-9b6dc9a6]{padding:0 5px;width:100%!important;height:var(--magic-input-height);text-overflow:ellipsis;word-break:keep-all;text-align:left}.magic-select ul li[data-v-9b6dc9a6]:hover{background:var(--select-option-hover-background-color);color:var(--select-option-hover-color)}.magic-textarea[data-v-ca6693f6]{line-height:22px;border-radius:0;outline:0;border:1px solid var(--input-border-color);resize:none;background:var(--input-background-color);color:var(--input-color);width:100%;height:100%}.magic-textarea[data-v-ca6693f6]:focus{border-color:var(--input-focus-color)}.magic-avatar-group[data-v-511f7f80]{display:inline-block;height:22px;line-height:22px}.magic-avatar-group .magic-avatar[data-v-511f7f80]{position:relative;margin-left:-5px}.magic-avatar[data-v-73f02f44]{color:#fff;display:inline-block;text-align:center}.magic-api-body[data-v-3f309722]{display:flex;flex:1;height:100%}.magic-api-body>div[data-v-3f309722]{background-color:var(--navbar-body-background-color);flex:1;overflow:hidden;position:relative;height:100%}.magic-api-group[data-v-07a9bc9f]{display:flex;flex-direction:column}.magic-api-group form[data-v-07a9bc9f]{display:flex;padding:5px}.magic-api-group form label[data-v-07a9bc9f]{display:inline-block;width:85px;height:22px;line-height:22px;font-weight:400;text-align:right;padding:0 5px}.magic-api-group+.magic-navbar[data-v-07a9bc9f]{flex-direction:column;overflow:hidden}.magic-api-group+.magic-navbar[data-v-07a9bc9f] .magic-navbar-header{border-bottom:1px solid var(--main-border-color)}.magic-navbar[data-v-07a9bc9f] .magic-navbar-body,.magic-navbar[data-v-07a9bc9f] .magic-navbar-item{width:100%;height:100%}.magic-api-group>form .magic-button[data-v-07a9bc9f]{margin-left:10px}.magic-api-info[data-v-31699d76]{display:flex;flex-direction:column}.magic-api-info form[data-v-31699d76]{display:flex;padding:5px}.magic-api-info form label[data-v-31699d76]{display:inline-block;width:75px;height:var(--magic-input-height);line-height:var(--magic-input-height);font-weight:400;text-align:right;padding:0 5px}.magic-api-info+.magic-navbar[data-v-31699d76]{flex-direction:column;overflow:hidden}.magic-api-info+.magic-navbar[data-v-31699d76] .magic-navbar-header{border-bottom:1px solid var(--main-border-color)}.magic-navbar[data-v-31699d76] .magic-navbar-body,.magic-navbar[data-v-31699d76] .magic-navbar-item{width:100%;height:100%}.magic-monaco-editor[data-v-7f02b65d]{position:absolute;left:0;right:0;top:0;bottom:0}.magic-table[data-v-bda6618c]{flex:1}.magic-table[data-v-bda6618c] .magic-table-column{display:flex;justify-content:center;text-align:center}.magic-table[data-v-bda6618c] .magic-table-column:first-child{justify-content:unset!important;text-align:unset!important}.magic-data-type[data-v-bda6618c]{display:inline-block;width:0;padding:0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:center}iframe[data-v-27b4e47a]{width:100%;height:100%;border:0}.magic-monaco-editor[data-v-27b4e47a]{position:absolute;left:0;right:0;top:0;bottom:0}.magic-table[data-v-76813707]{flex:1}.magic-table span[data-v-76813707]{padding:0 5px}.magic-table[data-v-051e4f5a]{flex:1}.magic-table[data-v-051e4f5a] .magic-table-column{display:flex;justify-content:center;text-align:center}.magic-table[data-v-051e4f5a] .magic-table-column:first-child{justify-content:unset!important;text-align:unset!important}.magic-data-type[data-v-051e4f5a]{display:inline-block;width:0;padding:0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.magic-panel-api-response[data-v-1cf463a0]{width:100%;height:100%;display:flex;flex-direction:column}.magic-panel-api-response[data-v-1cf463a0] .magic-navbar__horizontal>ul{border-top:none;border-bottom:1px solid var(--main-border-color)}.magic-navbar[data-v-1cf463a0]{flex-direction:column;width:100%;height:100%}.magic-panel-api-response[data-v-1cf463a0] .magic-navbar .magic-navbar-body,.magic-panel-api-response[data-v-1cf463a0] .magic-navbar .magic-navbar-item{width:100%;height:100%}.magic-panel-api-response[data-v-1cf463a0] .magic-navbar .magic-navbar-item{display:flex;position:relative}.magic-global[data-v-03e7bbcc]{display:flex;flex-direction:column;flex:1;width:100%;height:100%}.magic-global>.magic-navbar[data-v-03e7bbcc]{flex-direction:column;overflow:hidden}.magic-global>.magic-navbar[data-v-03e7bbcc] .magic-navbar-header{border-bottom:1px solid var(--main-border-color)}.magic-navbar[data-v-03e7bbcc] .magic-navbar-body,.magic-navbar[data-v-03e7bbcc] .magic-navbar-item{width:100%;height:100%}.magic-global .magic-panel-global[data-v-03e7bbcc]{display:flex;width:100%;height:100%}.magic-global[data-v-03e7bbcc] .magic-panel-global>div{flex:1}.magic-panel-toolbar[data-v-4dcd3ed8]{width:var(--magic-panel-toolbar-width);border-right:1px solid var(--main-border-color);height:100%;text-align:center}.magic-panel-toolbar li[data-v-4dcd3ed8]{cursor:pointer;border-radius:2px;width:var(--magic-panel-toolbar-size);height:var(--magic-panel-toolbar-size);line-height:var(--magic-panel-toolbar-size);margin:3px auto;font-size:1em}.magic-panel-toolbar li[data-v-4dcd3ed8]:not(.disabled):hover,.magic-panel-toolbar li:not(.disabled).selected[data-v-4dcd3ed8]{background-color:var(--main-hover-icon-background-color)}.magic-panel-toolbar li.disabled[data-v-4dcd3ed8] .magic-icon>*{fill:var(--button-disabled-color)}.magic-resource-choose[data-v-4852fc0e]{max-height:400px;overflow:auto}.magic-resource-choose .magic-tree[data-v-4852fc0e]{margin-bottom:5px;min-height:300px}.magic-resource-choose .magic-tree[data-v-4852fc0e] .magic-icon.root{color:var(--main-icon-color)}.magic-resource-choose .magic-tree[data-v-4852fc0e] .magic-checkbox{display:inline;margin-right:3px}.magic-resource-choose .magic-tree[data-v-4852fc0e] .magic-checkbox input+label{width:12px!important;height:12px!important}.magic-resource-choose .magic-tree[data-v-4852fc0e] .magic-tree-item{padding-left:5px}.magic-resource-choose .magic-tree[data-v-4852fc0e] .magic-checkbox input+label:after{width:12px!important;height:12px!important;line-height:12px!important;top:0!important;left:0!important}.magic-resource-choose[data-v-4852fc0e] .magic-tree label{color:var(--resource-label-color)}.magic-resource-choose[data-v-4852fc0e] .magic-tree span{color:var(--resource-span-color)}.magic-table[data-v-ef606938]{width:270px;border-right:1px solid var(--table-border-color)}.magic-backup-file[data-v-ef606938]{height:100%;position:relative;overflow:hidden;display:flex}.magic-backup-file-diff-container[data-v-ef606938]{flex:1;overflow:hidden;height:100%;display:flex;flex-direction:column}.magic-backup-file-diff-container>ul[data-v-ef606938]{display:flex}.magic-backup-file-diff-container>ul li[data-v-ef606938]{flex:1;height:30px;line-height:30px;padding:0 5px}.magic-backup-file-diff-container>ul li button[data-v-ef606938]{float:right;margin-right:10px;margin-top:4px}.magic-backup[data-v-b15945c0]{display:flex;flex:1;height:100%}.magic-backup>div[data-v-b15945c0]{background-color:var(--navbar-body-background-color);flex:1;overflow:hidden;position:relative;height:100%}.magic-backup .magic-table[data-v-b15945c0]{height:100%;position:absolute;width:100%}.magic-backup[data-v-b15945c0] .magic-table-row .magic-table-column:last-child,.magic-backup[data-v-b15945c0] .magic-table-header .magic-table-column:last-child{padding-left:5px}.magic-backup-diff-container[data-v-b15945c0]{width:100%;height:100%;display:flex;flex-direction:column}.magic-backup-diff-container .magic-backup-diff-header[data-v-b15945c0]{height:30px;line-height:30px;display:flex}.magic-backup-diff-container .magic-backup-diff-header>div[data-v-b15945c0]{flex:1}.magic-backup-diff-container .magic-backup-diff-header>div[data-v-b15945c0]:last-child{text-align:right}.magic-dialog-diff .magic-dialog-main{display:inline-flex;flex-direction:column}.magic-dialog-diff .magic-dialog-main .magic-dialog-body{flex:1;display:flex;flex-direction:column}.magic-panel-toolbar[data-v-71b796dc] .magic-icon-continue{fill:var(--icon-debug-color)}.magic-panel-toolbar[data-v-71b796dc] .magic-icon-step-over{fill:var(--icon-step-color)}.magic-debug[data-v-71b796dc]{display:flex;flex:1}.magic-debug .magic-debug-variables[data-v-71b796dc]{flex:1;background-color:var(--navbar-body-background-color);position:relative;overflow:auto}.magic-debug[data-v-71b796dc] .magic-tree{position:absolute;width:100%;height:100%}.magic-debug[data-v-71b796dc] .magic-tree .magic-tree-item{height:auto}.magic-debug .object-type[data-v-71b796dc]{color:var(--resource-span-color)}.magic-debug label.key[data-v-71b796dc]{color:var(--data-type-key-color);padding-left:3px}.magic-debug label.separator[data-v-71b796dc]{padding:0 5px}.magic-debug svg[data-v-71b796dc]{display:inline-block;width:16px;height:16px;vertical-align:middle}.magic-event[data-v-06d5ba36],.magic-event[data-v-06d5ba36] .magic-table{display:flex;flex:1}.magic-event>div[data-v-06d5ba36]{background-color:var(--navbar-body-background-color);flex:1;overflow:hidden;position:relative;height:100%}.magic-event[data-v-06d5ba36] .magic-table{height:100%;position:absolute;width:100%}.magic-event[data-v-06d5ba36] .magic-table .magic-table-header{display:none}.magic-event[data-v-06d5ba36] .magic-table .magic-table-row{border-right:1px solid var(--main-border-color)}.magic-event[data-v-06d5ba36] .magic-table .magic-table-column{padding-left:5px}.magic-log-wrapper{display:flex;flex:1;height:100%;overflow:hidden;position:relative}.magic-log{font-size:13.5px;padding:5px;flex:1;overflow:auto;position:absolute;top:0;right:0;bottom:0;left:var(--magic-panel-toolbar-width)}.magic-log>div{width:100%}.magic-log>div pre{line-height:20px;width:100%}.magic-log>div.multiple pre{max-height:60px;overflow:hidden}.magic-log>div.multiple.more pre{max-height:none}.magic-log span.multiple{opacity:.5;font-size:13px;text-decoration:underline;cursor:pointer}.magic-log pre span.log-INFO{color:var(--log-color-info)}.magic-log pre span.log-DEBUG{color:var(--log-color-debug)}.magic-log pre span.log-ERROR{color:var(--log-color-error)}.magic-log pre span.log-WARN{color:var(--log-color-warn)}.magic-log pre span.log-TRACE{color:var(--log-color-trace)}.magic-log pre span.log-cyan{color:var(--log-color-cyan)}.magic-log pre a.log-link{color:var(--log-color-link)}.magic-online[data-v-0c296fa2]{height:30px;line-height:30px;float:right;padding-left:10px;max-width:500px}.magic-online>span[data-v-0c296fa2]{padding-left:5px}.magic-status-bar[data-v-55e90cbc]{height:30px;line-height:30px;display:flex;background-color:var(--main-background-color);padding-left:24px}.magic-status-bar .message[data-v-55e90cbc]{flex:1}.magic-status-bar ul[data-v-55e90cbc]{float:right;display:inline-flex;align-items:center;padding-right:2px}.magic-status-bar ul li[data-v-55e90cbc]{cursor:pointer;padding:0 4px;height:20px;line-height:20px;border-radius:3px}.magic-status-bar ul li .magic-icon[data-v-55e90cbc]{height:20px;line-height:20px}.magic-status-bar ul li[data-v-55e90cbc]:hover{background-color:var(--main-hover-icon-background-color)}.magic-todo[data-v-29308d9b]{display:flex;flex:1}.magic-todo div[data-v-29308d9b]{background-color:var(--navbar-body-background-color);flex:1;overflow:hidden;position:relative}.magic-todo div[data-v-29308d9b] .magic-tree{width:100%;height:100%;position:absolute;overflow:auto}.magic-todo div[data-v-29308d9b] .magic-tree label{color:var(--resource-label-color)}.magic-todo div[data-v-29308d9b] .magic-tree label.todo{font-style:italic;color:var(--todo-color)}.magic-todo div[data-v-29308d9b] .magic-tree span{color:var(--resource-span-color)}.magic-toolbar .magic-navbar[data-v-68b3ca3b]{flex-direction:column-reverse}.magic-toolbar-header[data-v-68b3ca3b]{height:26px;line-height:26px;border-bottom:1px solid var(--main-border-color);border-top:1px solid var(--main-border-color);background-color:var(--main-background-color)}.magic-toolbar-header+div[data-v-68b3ca3b]{z-index:99999}.magic-toolbar-header label[data-v-68b3ca3b]{display:inline-block;padding-left:10px}.magic-toolbar .magic-resizer-y[data-v-68b3ca3b]{flex-direction:column}.magic-toolbar-header-buttons[data-v-68b3ca3b]{float:right;margin-right:5px;vertical-align:middle;display:flex;align-items:center;height:26px}.magic-toolbar-header-buttons .magic-icon[data-v-68b3ca3b]{display:inline-block;cursor:pointer;padding:0 2px;height:18px;line-height:18px;border-radius:3px;z-index:99999}.magic-toolbar-header-buttons .magic-icon[data-v-68b3ca3b]:hover{background-color:var(--main-hover-icon-background-color)}.magic-toolbar .magic-navbar[data-v-68b3ca3b] .magic-navbar-body{background-color:var(--main-background-color)}.magic-panel-api,.magic-panel-function,.magic-event{display:flex;width:100%;height:100%}.magic-panel-api>div,.magic-panel-function>div,.magic-event>div{flex:1}.magic-function-info[data-v-bc8654ec]{display:flex;flex-direction:column}.magic-function-info form[data-v-bc8654ec]{display:flex;padding:5px}.magic-function-info form label[data-v-bc8654ec]{display:inline-block;height:22px;line-height:22px;font-weight:400;text-align:right;padding:0 5px 0 20px}.magic-navbar[data-v-bc8654ec]{flex-direction:column;overflow:hidden}.magic-navbar[data-v-bc8654ec] .magic-navbar-header{border-bottom:1px solid var(--main-border-color)}.magic-navbar[data-v-bc8654ec] .magic-navbar-body,.magic-navbar[data-v-bc8654ec] .magic-navbar-item{width:100%;height:100%}.magic-dialog[data-v-097eba83] .magic-dialog-body{overflow:hidden}.magic-header[data-v-1e7d7426]{height:var(--magic-header-height);line-height:var(--magic-header-height);background-color:var(--main-background-color);border-bottom:1px solid var(--main-border-color);display:flex;color:var(--header-default-color)}.magic-header .magic-logo[data-v-1e7d7426]{float:left;font-weight:700;font-size:0;letter-spacing:0;background-repeat:no-repeat;background-position:var(--magic-header-logo-background-position);background-size:var(--magic-header-logo-background-size);padding-left:var(--magic-header-logo-padding);color:var(--header-title-color)}.magic-header .magic-logo label[data-v-1e7d7426]{font-size:16px;display:inline-block;margin-right:5px;text-align:left;font-weight:400}.magic-header .magic-logo label[data-v-1e7d7426]:last-child{font-size:12px}.magic-header ul[data-v-1e7d7426]{float:right}.magic-header ul li[data-v-1e7d7426]{cursor:pointer;height:var(--magic-header-height);text-align:center;display:inline-flex;align-items:center}.magic-header ul li svg[data-v-1e7d7426]{padding:0 4px;height:var(--magic-header-icon-size);width:var(--magic-header-icon-size);border-radius:4px}.magic-header ul li.disabled svg[data-v-1e7d7426]{fill:var(--button-disabled-color)}.magic-header ul li:not(.disabled) svg[data-v-1e7d7426]:hover{background-color:var(--main-hover-icon-background-color)}.magic-header ul li[data-v-1e7d7426]:not(.disabled) .magic-icon-run,.magic-header ul li[data-v-1e7d7426] .magic-icon-push{fill:#59a869}.magic-header-title[data-v-1e7d7426]{flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.magic-skin-selector[data-v-1e7d7426],.magic-locale-selector[data-v-1e7d7426]{position:absolute;top:var(--magic-header-height);right:24px;z-index:20;background-color:var(--main-background-color);border:1px solid var(--main-border-color);border-top:none}.magic-skin-selector[data-v-1e7d7426]{right:48px}.magic-skin-selector ul li[data-v-1e7d7426],.magic-locale-selector ul li[data-v-1e7d7426]{height:24px;line-height:24px;text-align:center;cursor:pointer;padding:2px 5px}.magic-skin-selector ul li[data-v-1e7d7426]:not(:last-child),.magic-locale-selector ul li[data-v-1e7d7426]:not(:last-child){border-bottom:1px solid var(--main-border-color)}.magic-skin-selector ul li[data-v-1e7d7426]:hover,.magic-locale-selector ul li[data-v-1e7d7426]:hover{background-color:var(--select-option-hover-background-color);color:var(--select-option-hover-color)}.magic-dialog[data-v-440447fe] .magic-dialog-body{overflow:hidden}.magic-push-form[data-v-440447fe]{padding:0 10px}.magic-push-form>div[data-v-440447fe]{display:flex;margin-top:5px}.magic-push-form label[data-v-440447fe]{width:80px;text-align:right;display:inline-block;height:var(--magic-input-height);line-height:var(--magic-input-height)}.magic-push-form[data-v-440447fe] .magic-input{width:auto!important;flex:1}.magic-search-result[data-v-4bbc2d10]{overflow:auto;max-height:200px;background-color:var(--navbar-body-background-color)}.magic-search-result .magic-search-result-item[data-v-4bbc2d10]{display:flex;padding:0 5px;line-height:20px}.magic-search-result .magic-search-result-item[data-v-4bbc2d10]:hover,.magic-search-result .magic-search-result-item.selected[data-v-4bbc2d10]{background-color:var(--tree-hover-background-color)}.magic-search-result .magic-search-result-item .label[data-v-4bbc2d10]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.magic-search-result .magic-search-result-item .label[data-v-4bbc2d10] .keyword{background:#FFDE7B;color:#000}.magic-search-result-item .name[data-v-4bbc2d10],.magic-search-result-item .line[data-v-4bbc2d10]{color:var(--resource-span-color)}.magic-search-result .magic-search-result-item .line[data-v-4bbc2d10]{padding-left:5px}.display-text[data-v-4bbc2d10]{height:30px;line-height:30px;border-top:1px solid var(--main-border-color);border-bottom:1px solid var(--main-border-color)}.magic-data-resource[data-v-4f1250a4]{display:flex;flex-direction:column;flex:1;width:100%}.magic-data-resource .magic-data-resource-header[data-v-4f1250a4]{height:24px;line-height:24px;display:flex;background-color:var(--main-background-color);border-bottom:1px solid var(--main-border-color);padding-left:3px}.magic-data-resource .magic-data-resource-header input[data-v-4f1250a4]{flex:1;border:none;background:none;height:24px;line-height:24px}.magic-data-resource .magic-data-resource-header ul[data-v-4f1250a4]{display:inline-flex;align-items:center}.magic-data-resource .magic-data-resource-header ul li[data-v-4f1250a4]{display:inline-block;cursor:pointer;padding:0 3px;height:20px;line-height:20px;border-radius:3px}.magic-data-resource .magic-data-resource-header ul li.separator[data-v-4f1250a4]{background-color:var(--main-border-color);width:1px;border-radius:0;padding:0;margin:0 4px}.magic-data-resource .magic-data-resource-header ul li[data-v-4f1250a4]:hover{background:var(--main-hover-icon-background-color)}.magic-data-resource .magic-data-resource-header svg[data-v-4f1250a4]{height:100%}.magic-data-resource>ul[data-v-4f1250a4]{height:100%;overflow:auto}.magic-data-resource>ul li[data-v-4f1250a4]{line-height:22px;padding-left:10px;white-space:nowrap}.magic-data-resource>ul li[data-v-4f1250a4]:hover{background-color:var(--tree-hover-background-color)}.magic-data-resource>ul li .magic-icon[data-v-4f1250a4]{padding-right:2px}.magic-data-resource>ul li label[data-v-4f1250a4]{color:var(--resource-label-color)}.magic-data-resource>ul li span[data-v-4f1250a4]{color:var(--resource-span-color);display:inline-block;height:22px;line-height:22px}.magic-data-resource>ul li[data-v-4f1250a4] .magic-icon-datasource{fill:#089910}.magic-editor .magic-form-row{display:flex;margin-bottom:5px}.magic-editor .magic-form-row label{margin-right:5px;display:inline-block;width:70px;text-align:right;height:var(--magic-input-height);line-height:var(--magic-input-height)}.magic-editor .magic-form-row>input,.magic-editor .magic-form-row>.magic-select{flex:1;width:auto}label[data-v-2efca342]{width:60px;text-align:right;display:inline-block}.magic-login[data-v-2efca342]{position:fixed;z-index:999999999999;background:#fff;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-image:url(./login-bg.025a11cc.svg)}.magic-login .magic-login-box[data-v-2efca342]{border-radius:5px;width:450px;box-shadow:0 7px 25px #00000014;position:absolute;box-sizing:border-box;padding-top:60px;top:33.333333%;margin-top:-125px;background-color:#fff}.magic-login-logo[data-v-2efca342]{background-image:url(./logo-magic-api.7bf52c65.png);width:128px;height:128px;background-size:90px 90px;background-repeat:no-repeat;background-position:center center;position:absolute;top:-64px;left:50%;margin-left:-64px;border-radius:64px;box-shadow:0 0 20px 5px #00000014;padding:10px;background-color:#fff}.magic-login-text[data-v-2efca342]{height:70px;line-height:70px;display:block;text-align:center;font-family:PoetsenOne;font-size:28px;color:gray}.magic-login-text span[data-v-2efca342]{font-size:16px}.magic-login-copyright[data-v-2efca342]{text-align:center;color:#999;font-size:18px;font-family:Avenir,Helvetica,Arial,sans-serif;position:absolute;bottom:50px}.magic-login-copyright a[data-v-2efca342]{text-decoration:none;color:#2196f3;outline:0}.magic-login-row[data-v-2efca342]{width:400px;margin:25px auto;position:relative}.magic-login-row.error[data-v-2efca342]{background-color:#fff1f0;border:1px solid #ffa39e;color:#000;border-radius:4px;padding:10px 0 10px 40px}.magic-login-row.error span[data-v-2efca342]{font-size:14px;word-break:break-all}.magic-login-row svg[data-v-2efca342]{position:absolute;width:20px;height:20px;top:15px;left:15px}.magic-login-row[data-v-2efca342] .magic-icon-error{fill:red}.magic-login-box .magic-input[data-v-2efca342]{height:50px;line-height:50px;background-color:transparent;display:block;border:1px solid #D9D9D9;border-radius:4px;padding-left:40px;color:#000000a6;transition:all .3s;font-size:16px}.magic-login-box .magic-input[data-v-2efca342]:focus{border-color:#0784de}.magic-login-box .magic-button[data-v-2efca342]{width:100%;height:50px;line-height:50px;background-color:#2196f3;color:#fff;border-radius:4px;font-size:18px;border-color:#2196f3;transition:all .3s}.magic-login-box .magic-button[data-v-2efca342]:hover,.magic-login-box .magic-button[data-v-2efca342]:focus{background-color:#4db5ff!important;border-color:#4db5ff!important}.magic-login-box .magic-button[data-v-2efca342]:active{background-color:#1272cc;border-color:#1272cc}.magic-main[data-v-478ba993]{flex:1;display:flex;border-bottom:1px solid var(--main-border-color);height:0;width:100%}.magic-main-body-wrapper[data-v-478ba993]{display:flex;flex:1;flex-direction:column}.magic-main-body[data-v-478ba993]{display:flex;flex:1;overflow:hidden}.magic-toolbar[data-v-478ba993] .magic-resizer-y .magic-resizer-event{top:auto}ul[data-v-44903aa6]{max-width:400px;max-height:600px;overflow:auto}ul li[data-v-44903aa6]:hover{background-color:var(--tree-hover-background-color)}ul li[data-v-44903aa6]{height:20px;line-height:20px;transition:.3s;word-break:break-all;white-space:nowrap}ul li label[data-v-44903aa6]{color:var(--resource-label-color)}ul li span[data-v-44903aa6]{color:var(--resource-span-color)}.magic-dialog-main[data-v-44903aa6] .magic-dialog-body{padding:0}.magic-resource[data-v-713f021e]{display:flex;flex-direction:column;flex:1;width:100%}.magic-resource .magic-resource-header[data-v-713f021e]{height:24px;line-height:24px;display:flex;background-color:var(--main-background-color);border-bottom:1px solid var(--main-border-color)}.magic-resource .magic-resource-header input[data-v-713f021e]{flex:1;border:none;background:none;height:24px;line-height:24px}.magic-resource .magic-resource-header ul[data-v-713f021e]{display:var(--magic-resource-header-icon-display);align-items:center}.magic-resource:hover .magic-resource-header ul[data-v-713f021e]{display:inline-flex}.magic-resource .magic-resource-header ul li[data-v-713f021e]{display:inline-block;cursor:pointer;padding:0 3px;height:20px;line-height:20px;border-radius:3px}.magic-resource .magic-resource-header svg[data-v-713f021e]{height:100%}.magic-resource .magic-resource-header ul li.separator[data-v-713f021e]{background-color:var(--main-border-color);width:1px;border-radius:0;padding:0;margin:0 4px}.magic-resource .magic-resource-header ul li[data-v-713f021e]:hover{background:var(--main-hover-icon-background-color)}.magic-resource .magic-tree label[data-v-713f021e]{color:var(--resource-label-color)}.magic-resource .magic-tree span[data-v-713f021e]{color:var(--resource-span-color)}.magic-resource .magic-tree .magic-icon-lock[data-v-713f021e]{fill:var(--resource-label-color);margin-left:5px}.magic-resource>.magic-tree[data-v-713f021e]{flex:1;overflow:auto}.magic-create-group li[data-v-713f021e]{display:flex;height:26px;line-height:26px}.magic-create-group li[data-v-713f021e]:not(:first-child){margin-top:4px}.magic-create-group li input[data-v-713f021e]{flex:1}.magic-resource[data-v-713f021e] .magic-avatar-group{margin-left:10px}.magic-script-editor[data-v-6435d26c]{flex:1;overflow:hidden;position:relative}.magic-script-editor .magic-monaco-editor-wrapper[data-v-6435d26c]{position:absolute;top:30px;left:0;right:0;bottom:0}.magic-empty-container[data-v-6435d26c]{flex:1;position:relative;width:100%;height:100%;background:var(--empty-background-color)}.magic-hot-key[data-v-6435d26c]{position:absolute;top:50%;margin-top:-105px;text-align:center;color:var(--empty-color);font-size:16px;width:100%}.magic-hot-key p[data-v-6435d26c]{display:inline-block;text-align:left;line-height:30px}.magic-hot-key p em[data-v-6435d26c]{margin-left:15px;font-style:normal;color:var(--empty-key-color)}.magic-monaco-editor[data-v-6435d26c]{position:absolute;top:0;bottom:0;left:0;right:0;overflow:visible!important}.magic-script-editor[data-v-6435d26c] .magic-avatar-group{margin-left:10px}.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif;--monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace}.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{position:absolute!important;top:0;height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%)}.monaco-editor.hc-black{-ms-high-contrast-adjust:none}@media screen and (-ms-high-contrast:active){.monaco-editor.vs .view-overlays .current-line,.monaco-editor.vs-dark .view-overlays .current-line{border-color:windowtext!important;border-left:0;border-right:0}.monaco-editor.vs .cursor,.monaco-editor.vs-dark .cursor{background-color:windowtext!important}.monaco-editor.vs .dnd-target,.monaco-editor.vs-dark .dnd-target{border-color:windowtext!important}.monaco-editor.vs .selected-text,.monaco-editor.vs-dark .selected-text{background-color:highlight!important}.monaco-editor.vs .view-line,.monaco-editor.vs-dark .view-line{-ms-high-contrast-adjust:none}.monaco-editor.vs .view-line span,.monaco-editor.vs-dark .view-line span{color:windowtext!important}.monaco-editor.vs .view-line span.inline-selected-text,.monaco-editor.vs-dark .view-line span.inline-selected-text{color:highlighttext!important}.monaco-editor.vs .view-overlays,.monaco-editor.vs-dark .view-overlays{-ms-high-contrast-adjust:none}.monaco-editor.vs .selectionHighlight,.monaco-editor.vs-dark .selectionHighlight,.monaco-editor.vs .wordHighlight,.monaco-editor.vs-dark .wordHighlight,.monaco-editor.vs .wordHighlightStrong,.monaco-editor.vs-dark .wordHighlightStrong,.monaco-editor.vs .reference-decoration,.monaco-editor.vs-dark .reference-decoration{border:2px dotted highlight!important;background:transparent!important;box-sizing:border-box}.monaco-editor.vs .rangeHighlight,.monaco-editor.vs-dark .rangeHighlight{background:transparent!important;border:1px dotted activeborder!important;box-sizing:border-box}.monaco-editor.vs .bracket-match,.monaco-editor.vs-dark .bracket-match{border-color:windowtext!important;background:transparent!important}.monaco-editor.vs .findMatch,.monaco-editor.vs-dark .findMatch,.monaco-editor.vs .currentFindMatch,.monaco-editor.vs-dark .currentFindMatch{border:2px dotted activeborder!important;background:transparent!important;box-sizing:border-box}.monaco-editor.vs .find-widget,.monaco-editor.vs-dark .find-widget{border:1px solid windowtext}.monaco-editor.vs .monaco-list .monaco-list-row,.monaco-editor.vs-dark .monaco-list .monaco-list-row{-ms-high-contrast-adjust:none;color:windowtext!important}.monaco-editor.vs .monaco-list .monaco-list-row.focused,.monaco-editor.vs-dark .monaco-list .monaco-list-row.focused{color:highlighttext!important;background-color:highlight!important}.monaco-editor.vs .monaco-list .monaco-list-row:hover,.monaco-editor.vs-dark .monaco-list .monaco-list-row:hover{background:transparent!important;border:1px solid highlight;box-sizing:border-box}.monaco-editor.vs .monaco-scrollable-element>.scrollbar,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar{-ms-high-contrast-adjust:none;background:background!important;border:1px solid windowtext;box-sizing:border-box}.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider{background:windowtext!important}.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider:hover,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider:hover{background:highlight!important}.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider.active,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider.active{background:highlight!important}.monaco-editor.vs .decorationsOverviewRuler,.monaco-editor.vs-dark .decorationsOverviewRuler{opacity:0}.monaco-editor.vs .minimap,.monaco-editor.vs-dark .minimap{display:none}.monaco-editor.vs .squiggly-d-error,.monaco-editor.vs-dark .squiggly-d-error{background:transparent!important;border-bottom:4px double #E47777}.monaco-editor.vs .squiggly-c-warning,.monaco-editor.vs-dark .squiggly-c-warning,.monaco-editor.vs .squiggly-b-info,.monaco-editor.vs-dark .squiggly-b-info{border-bottom:4px double #71B771}.monaco-editor.vs .squiggly-a-hint,.monaco-editor.vs-dark .squiggly-a-hint{border-bottom:4px double #6c6c6c}.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{-ms-high-contrast-adjust:none;color:highlighttext!important;background-color:highlight!important}.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label{-ms-high-contrast-adjust:none;background:transparent!important;border:1px solid highlight;box-sizing:border-box}.monaco-diff-editor.vs .diffOverviewRuler,.monaco-diff-editor.vs-dark .diffOverviewRuler{display:none}.monaco-editor.vs .line-insert,.monaco-editor.vs-dark .line-insert,.monaco-editor.vs .line-delete,.monaco-editor.vs-dark .line-delete{background:transparent!important;border:1px solid highlight!important;box-sizing:border-box}.monaco-editor.vs .char-insert,.monaco-editor.vs-dark .char-insert,.monaco-editor.vs .char-delete,.monaco-editor.vs-dark .char-delete{background:transparent!important}}.monaco-aria-container{position:absolute;left:-999em}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .inputarea{min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:none!important;resize:none;border:none;overflow:hidden;color:transparent;background-color:transparent}.monaco-editor .inputarea.ime-input{z-index:10}.monaco-editor .margin-view-overlays .line-numbers{font-variant-numeric:tabular-nums;position:absolute;text-align:right;display:inline-block;vertical-align:middle;box-sizing:border-box;cursor:default;height:100%}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-mouse-cursor-text{cursor:text}.vs-dark .mac .monaco-mouse-cursor-text,.hc-black .mac .monaco-mouse-cursor-text,.vs-dark.mac .monaco-mouse-cursor-text,.hc-black.mac .monaco-mouse-cursor-text{cursor:-webkit-image-set(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1x,url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) 2x) 5 8,text}.monaco-editor .view-overlays .current-line,.monaco-editor .margin-view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{position:absolute}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;background:rgba(0,0,0,0);transition:opacity .1s linear}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:#ddd 0 6px 6px -6px inset}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:#ddd 6px 0 6px -6px inset}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.monaco-scrollable-element>.shadow.top.left{box-shadow:#ddd 6px 6px 6px -6px inset}.vs .monaco-scrollable-element>.scrollbar>.slider{background:rgba(100,100,100,.4)}.vs-dark .monaco-scrollable-element>.scrollbar>.slider{background:rgba(121,121,121,.4)}.hc-black .monaco-scrollable-element>.scrollbar>.slider{background:rgba(111,195,223,.6)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:rgba(100,100,100,.7)}.hc-black .monaco-scrollable-element>.scrollbar>.slider:hover{background:rgba(111,195,223,.8)}.monaco-scrollable-element>.scrollbar>.slider.active{background:rgba(0,0,0,.6)}.vs-dark .monaco-scrollable-element>.scrollbar>.slider.active{background:rgba(191,191,191,.4)}.hc-black .monaco-scrollable-element>.scrollbar>.slider.active{background:rgba(111,195,223,1)}.vs-dark .monaco-scrollable-element .shadow.top{box-shadow:none}.vs-dark .monaco-scrollable-element .shadow.left{box-shadow:#000 6px 0 6px -6px inset}.vs-dark .monaco-scrollable-element .shadow.top.left{box-shadow:#000 6px 6px 6px -6px inset}.hc-black .monaco-scrollable-element .shadow.top,.hc-black .monaco-scrollable-element .shadow.left,.hc-black .monaco-scrollable-element .shadow.top.left{box-shadow:none}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .margin-view-overlays .cgmr{position:absolute;display:flex;align-items:center;justify-content:center}.monaco-editor .lines-content .core-guide{position:absolute}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .mtkz{display:inline-block}.monaco-editor .lines-decorations{position:absolute;top:0;background:white}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}.monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover:hover .minimap-slider,.monaco-editor .minimap.slider-mouseover .minimap-slider.active{opacity:1}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{position:absolute;left:-6px;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{position:absolute;left:-1px;width:1px}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{position:absolute;top:0}.monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{position:absolute;overflow:hidden}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{box-sizing:border-box;background:transparent!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:transparent!important;box-sizing:border-box}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-width:1px;border-bottom-style:solid;background:transparent!important;box-sizing:border-box}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:rgba(0,0,0,.03)}.monaco-diff-editor.vs-dark .diffOverview{background:rgba(255,255,255,.01)}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:rgba(0,0,0,0)}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:rgba(171,171,171,.4)}.modified-in-monaco-diff-editor.hc-black .slider.active{background:none}.monaco-editor .insert-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-diff-editor .delete-sign{font-size:11px!important;opacity:.7!important;display:flex!important;align-items:center}.monaco-editor.hc-black .insert-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .delete-sign{opacity:1}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .inline-added-margin-view-zone{text-align:right}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}:root{--sash-size: 4px}.monaco-sash{position:absolute;z-index:35;touch-action:none}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;top:0;width:var(--sash-size);height:100%}.monaco-sash.horizontal{cursor:ns-resize;left:0;width:100%;height:var(--sash-size)}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";height:calc(var(--sash-size) * 2);width:calc(var(--sash-size) * 2);z-index:100;display:block;cursor:all-scroll;position:absolute}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--sash-size) * -.5);top:calc(var(--sash-size) * -1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{left:calc(var(--sash-size) * -.5);bottom:calc(var(--sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{top:calc(var(--sash-size) * -.5);left:calc(var(--sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{top:calc(var(--sash-size) * -.5);right:calc(var(--sash-size) * -1)}.monaco-sash:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;transition:background-color .1s ease-out;background:transparent}.monaco-sash.vertical:before{width:var(--sash-hover-size);left:calc(50% - (var(--sash-hover-size) / 2))}.monaco-sash.horizontal:before{height:var(--sash-hover-size);top:calc(50% - (var(--sash-hover-size) / 2))}.monaco-sash.debug{background:cyan}.monaco-sash.debug.disabled{background:rgba(0,255,255,.2)}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-diff-editor .diff-review-line-number{text-align:right;display:inline-block}.monaco-diff-editor .diff-review{position:absolute;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-diff-editor .diff-review-summary{padding-left:10px}.monaco-diff-editor .diff-review-shadow{position:absolute}.monaco-diff-editor .diff-review-row{white-space:pre}.monaco-diff-editor .diff-review-table{display:table;min-width:100%}.monaco-diff-editor .diff-review-row{display:table-row;width:100%}.monaco-diff-editor .diff-review-spacer{display:inline-block;width:10px;vertical-align:middle}.monaco-diff-editor .diff-review-spacer>.codicon{font-size:9px!important}.monaco-diff-editor .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px}.monaco-diff-editor .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{display:flex;margin:0 auto;padding:0;height:100%;width:100%;align-items:center}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{display:block;align-items:center;justify-content:center;cursor:pointer;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .icon,.monaco-action-bar .action-item .codicon{display:block}.monaco-action-bar .action-item .codicon{display:flex;align-items:center;width:16px;height:16px}.monaco-action-bar .action-label{font-size:11px;padding:3px;border-radius:5px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{opacity:.4}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{display:block;border-bottom:1px solid #bbb;padding-top:1px;margin-left:.8em;margin-right:.8em}.monaco-action-bar .action-item .action-label.separator{width:1px;height:16px;margin:5px 4px!important;cursor:default;min-width:1px;padding:0;background-color:#bbb}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{overflow:hidden;flex:1;max-width:170px;min-width:60px;display:flex;align-items:center;justify-content:center;margin-right:10px}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-label{margin-right:1px}@font-face{font-family:codicon;font-display:block;src:url(./codicon.d86f69b1.ttf) format("truetype")}.codicon[class*=codicon-]{font: 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none;-ms-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.context-view{position:absolute;z-index:2500}.context-view.fixed{all:initial;font-family:inherit;font-size:13px;position:fixed;z-index:2500;color:inherit}.context-view .monaco-menu{min-width:130px}.monaco-list{position:relative;height:100%;width:100%;white-space:nowrap}.monaco-list.mouse-support{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{position:relative;width:100%;height:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{position:absolute;box-sizing:border-box;overflow:hidden;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-single,.monaco-list.selection-multiple{outline:0!important}.monaco-drag-image{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;position:absolute;z-index:1000}.monaco-list-type-filter{display:flex;align-items:center;position:absolute;border-radius:2px;padding:0 3px;max-width:calc(100% - 10px);text-overflow:ellipsis;overflow:hidden;text-align:right;box-sizing:border-box;cursor:all-scroll;font-size:13px;line-height:18px;height:20px;z-index:1;top:4px}.monaco-list-type-filter.dragging{transition:top .2s,left .2s}.monaco-list-type-filter.ne{right:4px}.monaco-list-type-filter.nw{left:4px}.monaco-list-type-filter>.controls{display:flex;align-items:center;box-sizing:border-box;transition:width .2s;width:0}.monaco-list-type-filter.dragging>.controls,.monaco-list-type-filter:hover>.controls{width:36px}.monaco-list-type-filter>.controls>*{border:none;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;background:none;width:16px;height:16px;flex-shrink:0;margin:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer}.monaco-list-type-filter>.controls>.filter{margin-left:4px}.monaco-list-type-filter-message{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;padding:40px 1em 1em;text-align:center;white-space:normal;opacity:.7;pointer-events:none}.monaco-list-type-filter-message:empty{display:none}.monaco-list-type-filter{cursor:grab}.monaco-list-type-filter.dragging{cursor:grabbing}.monaco-split-view2{position:relative;width:100%;height:100%}.monaco-split-view2>.sash-container{position:absolute;width:100%;height:100%;pointer-events:none}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:initial}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{width:100%;height:100%;white-space:nowrap;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:initial;position:absolute}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{content:" ";position:absolute;top:0;left:0;z-index:5;pointer-events:none;background-color:var(--separator-border)}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;position:relative;height:100%;width:100%;white-space:nowrap}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{width:100%;height:100%;font-weight:700;overflow:hidden;text-overflow:ellipsis}.monaco-table-th,.monaco-table-td{box-sizing:border-box;flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:"";position:absolute;left:calc(var(--sash-size) / 2);width:0;border-left:1px solid transparent}.monaco-table>.monaco-split-view2,.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-tl-row{display:flex;height:100%;align-items:center;position:relative}.monaco-tl-indent{height:100%;position:absolute;top:0;left:16px;pointer-events:none}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{display:inline-block;box-sizing:border-box;height:100%;border-left:1px solid transparent}.monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-twistie,.monaco-tl-contents{height:100%}.monaco-tl-twistie{font-size:10px;text-align:right;padding-right:6px;flex-shrink:0;width:16px;display:flex!important;align-items:center;justify-content:center;transform:translate(3px)}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight,.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight,.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight,.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight,.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.monaco-keybinding>.monaco-keybinding-key{background-color:#ddd6;border:solid 1px rgba(204,204,204,.4);border-bottom-color:#bbb6;box-shadow:inset 0 -1px #bbb6;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px rgb(111,195,223);box-shadow:none;color:#fff}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:solid 1px rgba(51,51,51,.6);border-bottom-color:#4449;box-shadow:inset 0 -1px #4449;color:#ccc}.monaco-text-button{box-sizing:border-box;display:flex;width:100%;padding:4px;text-align:center;cursor:pointer;justify-content:center;align-items:center}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled:focus,.monaco-button.disabled{opacity:.4!important;cursor:default}.monaco-text-button>.codicon{margin:0 .2em;color:inherit!important}.monaco-button-dropdown{display:flex;cursor:pointer}.monaco-button-dropdown>.monaco-dropdown-button{margin-left:1px}.monaco-description-button{flex-direction:column}.monaco-description-button .monaco-button-label{font-weight:500}.monaco-description-button .monaco-button-description{font-style:italic}.monaco-count-badge{padding:3px 6px;border-radius:11px;font-size:11px;min-width:18px;min-height:18px;line-height:11px;font-weight:400;text-align:center;display:inline-block;box-sizing:border-box}.monaco-count-badge.long{padding:2px 3px;border-radius:2px;min-height:auto;line-height:normal}.monaco-progress-container{width:100%;height:5px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:5px;position:absolute;left:0;display:none}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-iteration-count:infinite;animation-timing-function:linear;transform:translateZ(0)}@keyframes progress{0%{transform:translate(0) scaleX(1)}50%{transform:translate(2500%) scaleX(3)}to{transform:translate(4900%) scaleX(1)}}.quick-input-widget{position:absolute;width:600px;z-index:2000;padding:0 1px 1px;left:50%;margin-left:-300px}.quick-input-titlebar{display:flex;align-items:center}.quick-input-left-action-bar{display:flex;margin-left:4px;flex:1}.quick-input-title{padding:3px 0;text-align:center;text-overflow:ellipsis;overflow:hidden}.quick-input-right-action-bar{display:flex;margin-right:4px;flex:1}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:center;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px}.quick-input-header .quick-input-description{margin:4px 2px}.quick-input-header{display:flex;padding:6px 6px 0;margin-bottom:-2px}.quick-input-widget.hidden-input .quick-input-header{padding:0;margin-bottom:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{flex-grow:1;display:flex;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{align-self:center;position:absolute;right:4px;display:flex;align-items:center}.quick-input-count .monaco-count-badge{vertical-align:middle;padding:2px 4px;border-radius:2px;min-height:auto;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{font-size:11px;padding:0 6px;display:flex;height:27.5px;align-items:center}.quick-input-message{margin-top:-1px;padding:5px 5px 2px;overflow-wrap:break-word}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-progress.monaco-progress-container,.quick-input-progress.monaco-progress-container .progress-bit{height:2px}.quick-input-list{line-height:22px;margin-top:6px}.quick-input-widget.hidden-input .quick-input-list{margin-top:0}.quick-input-list .monaco-list{overflow:hidden;max-height:440px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;overflow:hidden;display:flex;height:100%;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-width:1px;border-top-style:solid}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{overflow:hidden;display:flex;height:100%;flex:1}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-rows{overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;height:100%;flex:1;margin-left:5px}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{display:flex;align-items:center}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{opacity:.7;line-height:normal;text-overflow:ellipsis;overflow:hidden}.quick-input-list .monaco-highlighted-label .highlight{font-weight:700}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:8px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:0 2px 2px}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px}.quick-input-list .quick-input-list-entry-action-bar{margin-right:4px}.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none}.monaco-inputbox{position:relative;display:block;padding:0;box-sizing:border-box;font-size:inherit}.monaco-inputbox.idle{border:1px solid transparent}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px}.monaco-inputbox>.ibwrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.ibwrapper>.input{display:inline-block;box-sizing:border-box;width:100%;height:100%;line-height:inherit;border:none;font-family:inherit;font-size:inherit;resize:none;color:inherit}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;-ms-overflow-style:none;scrollbar-width:none;outline:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;margin-top:-1px;word-wrap:break-word}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;flex-shrink:0}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-style:italic}.monaco-icon-label.deprecated{text-decoration:line-through;opacity:.66}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;margin:auto 16px 0 5px;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-keybinding{display:flex;align-items:center;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{display:inline-block;border-style:solid;border-width:1px;border-radius:3px;vertical-align:middle;font-size:11px;padding:3px 5px;margin:0 2px}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{box-sizing:border-box}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{padding:1px 4px}.monaco-editor .monaco-editor-overlaymessage .anchor{width:0!important;height:0!important;border-color:transparent;border-style:solid;z-index:1000;border-width:8px;position:absolute}.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top,.monaco-editor .monaco-editor-overlaymessage.below .anchor.below{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-editor .contentWidgets .codicon-light-bulb,.monaco-editor .contentWidgets .codicon-lightbulb-autofix{display:flex;align-items:center;justify-content:center}.monaco-editor .contentWidgets .codicon-light-bulb:hover,.monaco-editor .contentWidgets .codicon-lightbulb-autofix:hover{cursor:pointer}.monaco-editor .codelens-decoration{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .codelens-decoration>span,.monaco-editor .codelens-decoration>a{user-select:none;-webkit-user-select:none;-ms-user-select:none;white-space:nowrap;vertical-align:sub}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer}.monaco-editor .codelens-decoration .codicon{vertical-align:middle;color:currentColor!important}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.monaco-editor .goto-definition-link{text-decoration:underline;cursor:pointer}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex}.monaco-editor .peekview-widget .head .peekview-title{display:flex;align-items:center;font-size:13px;margin-left:20px;min-width:0}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .meta,.monaco-editor .peekview-widget .head .peekview-title .dirname{white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1;text-align:right;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{margin-right:4px}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-bottom-style:solid;border-top-width:0;border-bottom-width:0;position:relative}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{cursor:pointer;height:100%;display:flex;align-items:center;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-action-bar .action-item.menu-entry .action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-action-bar .action-item.menu-entry .action-label{background-image:var(--menu-entry-icon-light)}.vs-dark .monaco-action-bar .action-item.menu-entry .action-label,.hc-black .monaco-action-bar .action-item.menu-entry .action-label{background-image:var(--menu-entry-icon-dark)}.monaco-dropdown-with-default{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label{background-image:var(--menu-entry-icon-light)}.vs-dark .monaco-dropdown-with-default>.action-container.menu-entry>.action-label,.hc-black .monaco-dropdown-with-default>.action-container.menu-entry>.action-label{background-image:var(--menu-entry-icon-dark)}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;width:100%;text-align:center;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{line-height:23px}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{display:inline-flex;width:100%;height:100%}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-right:12px;margin-left:auto}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-hover{cursor:default;position:absolute;overflow:hidden;z-index:50;user-select:text;-webkit-user-select:text;-ms-user-select:text;box-sizing:initial;animation:fadein .1s linear;line-height:1.5em}.monaco-hover.hidden{display:none}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:500px;word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover p,.monaco-hover .code,.monaco-hover ul{margin:8px 0}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{box-sizing:border-box;border-left:0px;border-right:0px;margin:4px -8px -4px;height:1px}.monaco-hover p:first-child,.monaco-hover .code:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover p:last-child,.monaco-hover .code:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ul,.monaco-hover ol{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:pre-wrap}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px}.monaco-hover .hover-row.status-bar .actions .action-container{margin-right:16px;cursor:pointer}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link:hover,.monaco-hover .hover-contents a.code-link{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{margin-bottom:4px;display:inline-block}.monaco-hover-content .action-container a{-webkit-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{pointer-events:none;opacity:.4;cursor:default}.colorpicker-widget{height:190px;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .colorpicker-hover:focus{outline:none}.colorpicker-header{display:flex;height:24px;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-header .picked-color{width:216px;line-height:24px;cursor:pointer;color:#fff;flex:1;text-align:center}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{width:74px;z-index:inherit;cursor:pointer}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{overflow:hidden;height:150px;position:relative;min-width:220px;flex:1}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{width:9px;height:9px;margin:-5px 0 0 -5px;border:1px solid rgb(255,255,255);border-radius:100%;box-shadow:0 0 2px #000c;position:absolute}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .hue-strip{position:relative;margin-left:8px;cursor:grab;background:linear-gradient(to bottom,#ff0000 0%,#ffff00 17%,#00ff00 33%,#00ffff 50%,#0000ff 67%,#ff00ff 83%,#ff0000 100%)}.colorpicker-body .opacity-strip{position:relative;margin-left:8px;cursor:grab;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{position:absolute;top:0;left:-2px;width:calc(100% + 4px);height:4px;box-sizing:border-box;border:1px solid rgba(255,255,255,.71);box-shadow:0 0 1px #000000d9}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;vertical-align:text-top;margin-right:4px}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{position:absolute;white-space:pre;user-select:text;-webkit-user-select:text;-ms-user-select:text;padding:8px 12px 0 20px}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{opacity:.6;color:inherit}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer}.monaco-editor .snippet-placeholder{min-width:2px;outline-style:solid;outline-width:1px}.monaco-editor .finish-snippet-placeholder{outline-style:solid;outline-width:1px}.monaco-editor .suggest-widget{width:430px;z-index:40;display:flex;flex-direction:column}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-widget,.monaco-editor .suggest-details{flex:0 1 auto;width:100%;border-style:solid;border-width:1px}.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-black .suggest-details{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{box-sizing:border-box;display:none;flex-flow:row nowrap;justify-content:space-between;width:100%;font-size:80%;padding:0 4px;border-top:1px solid transparent;overflow:hidden}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{opacity:.5;color:inherit}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{display:flex;-mox-box-sizing:border-box;box-sizing:border-box;padding-right:10px;background-repeat:no-repeat;background-position:2px 2px;white-space:nowrap;cursor:pointer;touch-action:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;overflow:hidden;text-overflow:ellipsis;white-space:pre;justify-content:space-between}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;opacity:1;font-size:14px;cursor:pointer}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{overflow:hidden;text-overflow:ellipsis;opacity:.6}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{margin-left:12px;opacity:.4;font-size:85%;line-height:initial;text-overflow:ellipsis;overflow:hidden;align-self:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-shrink:1;flex-grow:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{overflow:hidden;flex-shrink:4;max-width:70%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;position:absolute;right:10px;width:18px;height:18px;visibility:hidden}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{display:block;height:16px;width:16px;margin-left:2px;background-repeat:no-repeat;background-size:80%;background-position:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{display:flex;align-items:center;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{margin:0 0 0 .3em;border:.1em solid #000;width:.7em;height:.7em;display:inline-block}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{display:flex;flex-direction:column;cursor:default}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2;overflow:hidden;text-overflow:ellipsis;opacity:.7;white-space:pre;margin:0 24px 0 0;padding:4px 0 12px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{padding:0;white-space:initial;min-height:calc(1rem + 8px)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{white-space:pre-wrap;word-wrap:break-word}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ul,.monaco-editor .suggest-details ol{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{display:inline-block;cursor:pointer;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{opacity:0;font-size:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text{font-style:italic}.monaco-editor.vs .dnd-target{border-right:2px dotted black;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #AEAFAD;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines,.monaco-editor.hc-black.mac.mouse-default .view-lines{cursor:default}.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines,.monaco-editor.hc-black.mac.mouse-copy .view-lines{cursor:copy}.monaco-custom-checkbox{margin-left:2px;float:left;cursor:pointer;overflow:hidden;opacity:.7;width:20px;height:20px;border:1px solid transparent;padding:1px;box-sizing:border-box;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-custom-checkbox:hover,.monaco-custom-checkbox.checked{opacity:1}.hc-black .monaco-custom-checkbox,.hc-black .monaco-custom-checkbox:hover{background:none}.monaco-custom-checkbox.monaco-simple-checkbox{height:18px;width:18px;border:1px solid transparent;border-radius:3px;margin-right:9px;margin-left:0;padding:0;opacity:1;background-size:16px!important}.monaco-custom-checkbox.monaco-simple-checkbox:not(.checked):before{visibility:hidden}.monaco-editor .find-widget{position:absolute;z-index:35;height:33px;overflow:hidden;line-height:19px;transition:transform .2s linear;padding:0 4px;box-sizing:border-box;transform:translateY(calc(-100% - 10px))}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:4px 0 0 17px;font-size:12px;display:flex}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget>.replace-part .replace-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;display:flex;flex:1}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{display:flex;flex:initial;margin:0 0 0 3px;padding:2px 0 0 2px;height:25px;vertical-align:middle;box-sizing:border-box;text-align:center;line-height:23px}.monaco-editor .find-widget .button{width:16px;height:16px;padding:3px;border-radius:5px;flex:initial;margin-left:3px;background-position:center center;background-repeat:no-repeat;cursor:pointer;display:flex;align-items:center;justify-content:center}.monaco-editor .find-widget .codicon-find-selection{width:22px;height:22px;padding:3px;border-radius:5px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{position:absolute;top:0;left:3px;width:18px;height:100%;border-radius:0;box-sizing:border-box}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{opacity:.3;cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{position:relative;display:flex;vertical-align:middle;flex:auto;flex-grow:0;flex-shrink:0}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important}.monaco-editor .find-widget .monaco-sash{left:0!important}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:rgba(253,255,0,.8)}to{background:transparent}}@keyframes monaco-findInput-highlight-1{0%{background:rgba(253,255,0,.8)}99%{background:transparent}}@keyframes monaco-findInput-highlight-dark-0{0%{background:rgba(255,255,255,.44)}to{background:transparent}}@keyframes monaco-findInput-highlight-dark-1{0%{background:rgba(255,255,255,.44)}99%{background:transparent}}.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-collapsed{cursor:pointer;opacity:0;transition:opacity .5s;display:flex;align-items:center;justify-content:center;font-size:140%;margin-left:2px}.monaco-editor .margin-view-overlays:hover .codicon,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons{opacity:1}.monaco-editor .inline-folded:after{color:gray;margin:.1em .2em 0;content:"\22ef";display:inline;line-height:1em;cursor:pointer}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{cursor:pointer}.monaco-editor .parameter-hints-widget{z-index:10;display:flex;flex-direction:column;line-height:1.5em}.monaco-editor .parameter-hints-widget>.phwrapper{max-width:440px;display:flex;flex-direction:row}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.visible{transition:left .05s ease-in-out}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .monaco-scrollable-element,.monaco-editor .parameter-hints-widget .body{display:flex;flex:1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:initial}.monaco-editor .parameter-hints-widget .docs .markdown-docs code{font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .docs .code{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs code{border-radius:3px;padding:0 .4em}.monaco-editor .parameter-hints-widget .controls{display:none;flex-direction:column;align-items:center;min-width:22px;justify-content:flex-end}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{width:16px;height:16px;background-repeat:no-repeat;cursor:pointer}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{text-align:center;height:12px;line-height:12px;opacity:.5;font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .signature .parameter.active{font-weight:700;text-decoration:underline}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor .rename-box{z-index:100;color:inherit}.monaco-editor .rename-box.preview{padding:3px 3px 0}.monaco-editor .rename-box .rename-input{padding:3px;width:calc(100% - 6px)}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .accessibilityHelpWidget{padding:10px;vertical-align:middle;overflow:scroll}.monaco-editor .iPadShowKeyboard{width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;resize:none;overflow:hidden;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #F6F6F6;border-radius:4px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #252526}.monaco-editor .tokens-inspect-widget{z-index:50;user-select:text;-webkit-user-select:text;-ms-user-select:text;padding:10px}.tokens-inspect-separator{height:1px;border:0}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{font-weight:400;font-size:60%;float:right}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)} diff --git a/magic-editor/src/main/resources/magic-editor/assets/vendor.cc41f120.js b/magic-editor/src/main/resources/magic-editor/assets/vendor.3be44c84.js similarity index 99% rename from magic-editor/src/main/resources/magic-editor/assets/vendor.cc41f120.js rename to magic-editor/src/main/resources/magic-editor/assets/vendor.3be44c84.js index d2751031..83906155 100644 --- a/magic-editor/src/main/resources/magic-editor/assets/vendor.cc41f120.js +++ b/magic-editor/src/main/resources/magic-editor/assets/vendor.3be44c84.js @@ -1,4 +1,4 @@ -import{g as LH}from"./axios.23e7b955.js";import{_ as Te}from"./app.b15d6e90.js";var TH=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;e[t]=n;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||o.enumerable!==!0)return!1}return!0},vR=typeof Symbol!="undefined"&&Symbol,IH=TH,DH=function(){return typeof vR!="function"||typeof Symbol!="function"||typeof vR("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:IH()},AH="Function.prototype.bind called on incompatible ",HS=Array.prototype.slice,NH=Object.prototype.toString,RH="[object Function]",OH=function(e){var t=this;if(typeof t!="function"||NH.call(t)!==RH)throw new TypeError(AH+t);for(var i=HS.call(arguments,1),n,s=function(){if(this instanceof n){var d=t.apply(this,i.concat(HS.call(arguments)));return Object(d)===d?d:this}else return t.apply(e,i.concat(HS.call(arguments)))},o=Math.max(0,t.length-i.length),a=[],l=0;l1&&typeof t!="boolean")throw new af('"allowMissing" argument must be a boolean');if(UH(/^%?[^%]*%?$/,e)===null)throw new Af("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=qH(e),n=i.length>0?i[0]:"",s=GH("%"+n+"%",t),o=s.name,a=s.value,l=!1,c=s.alias;c&&(n=c[0],$H(i,HH([0,1],c)));for(var d=1,u=!0;d=i.length){var p=Rd(a,h);u=!!p,u&&"get"in p&&!("originalValue"in p.get)?a=p.get:a=a[h]}else u=AC(a,h),a=a[h];u&&!l&&(lf[o]=a)}}return a},pB={exports:{}};(function(r){var e=KI,t=YI,i=t("%Function.prototype.apply%"),n=t("%Function.prototype.call%"),s=t("%Reflect.apply%",!0)||e.call(n,i),o=t("%Object.getOwnPropertyDescriptor%",!0),a=t("%Object.defineProperty%",!0),l=t("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}r.exports=function(u){var h=s(e,n,arguments);if(o&&a){var f=o(h,"length");f.configurable&&a(h,"length",{value:1+l(0,u.length-(arguments.length-1))})}return h};var c=function(){return s(e,i,arguments)};a?a(r.exports,"apply",{value:c}):r.exports.apply=c})(pB);var mB=YI,_B=pB.exports,KH=_B(mB("String.prototype.indexOf")),YH=function(e,t){var i=mB(e,!!t);return typeof i=="function"&&KH(e,".prototype.")>-1?_B(i):i},ZH={},XH=Object.freeze(Object.defineProperty({__proto__:null,default:ZH},Symbol.toStringTag,{value:"Module"})),QH=LH(XH),ZI=typeof Map=="function"&&Map.prototype,zS=Object.getOwnPropertyDescriptor&&ZI?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,RC=ZI&&zS&&typeof zS.get=="function"?zS.get:null,JH=ZI&&Map.prototype.forEach,XI=typeof Set=="function"&&Set.prototype,jS=Object.getOwnPropertyDescriptor&&XI?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,OC=XI&&jS&&typeof jS.get=="function"?jS.get:null,e$=XI&&Set.prototype.forEach,t$=typeof WeakMap=="function"&&WeakMap.prototype,Op=t$?WeakMap.prototype.has:null,i$=typeof WeakSet=="function"&&WeakSet.prototype,Mp=i$?WeakSet.prototype.has:null,n$=typeof WeakRef=="function"&&WeakRef.prototype,yR=n$?WeakRef.prototype.deref:null,r$=Boolean.prototype.valueOf,s$=Object.prototype.toString,o$=Function.prototype.toString,a$=String.prototype.match,QI=String.prototype.slice,Xl=String.prototype.replace,l$=String.prototype.toUpperCase,SR=String.prototype.toLowerCase,bB=RegExp.prototype.test,xR=Array.prototype.concat,Fo=Array.prototype.join,c$=Array.prototype.slice,ER=Math.floor,EE=typeof BigInt=="function"?BigInt.prototype.valueOf:null,qS=Object.getOwnPropertySymbols,kE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Nf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ir=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Nf?"object":"symbol")?Symbol.toStringTag:null,vB=Object.prototype.propertyIsEnumerable,kR=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function LR(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||bB.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var i=r<0?-ER(-r):ER(r);if(i!==r){var n=String(i),s=QI.call(e,n.length+1);return Xl.call(n,t,"$&_")+"."+Xl.call(Xl.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Xl.call(e,t,"$&_")}var LE=QH,TR=LE.custom,IR=wB(TR)?TR:null,d$=function r(e,t,i,n){var s=t||{};if(Hl(s,"quoteStyle")&&s.quoteStyle!=="single"&&s.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Hl(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=Hl(s,"customInspect")?s.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Hl(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Hl(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=s.numericSeparator;if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return SB(e,s);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return a?LR(e,l):l}if(typeof e=="bigint"){var c=String(e)+"n";return a?LR(e,c):c}var d=typeof s.depth=="undefined"?5:s.depth;if(typeof i=="undefined"&&(i=0),i>=d&&d>0&&typeof e=="object")return TE(e)?"[Array]":"[Object]";var u=T$(s,i);if(typeof n=="undefined")n=[];else if(yB(n,e)>=0)return"[Circular]";function h(j,ne,J){if(ne&&(n=c$.call(n),n.push(ne)),J){var N={depth:s.depth};return Hl(s,"quoteStyle")&&(N.quoteStyle=s.quoteStyle),r(j,N,i+1,n)}return r(j,s,i+1,n)}if(typeof e=="function"&&!DR(e)){var f=v$(e),g=kb(e,h);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(g.length>0?" { "+Fo.call(g,", ")+" }":"")}if(wB(e)){var p=Nf?Xl.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):kE.call(e);return typeof e=="object"&&!Nf?zg(p):p}if(E$(e)){for(var _="<"+SR.call(String(e.nodeName)),v=e.attributes||[],b=0;b",_}if(TE(e)){if(e.length===0)return"[]";var C=kb(e,h);return u&&!L$(C)?"["+IE(C,u)+"]":"[ "+Fo.call(C,", ")+" ]"}if(f$(e)){var y=kb(e,h);return!("cause"in Error.prototype)&&"cause"in e&&!vB.call(e,"cause")?"{ ["+String(e)+"] "+Fo.call(xR.call("[cause]: "+h(e.cause),y),", ")+" }":y.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Fo.call(y,", ")+" }"}if(typeof e=="object"&&o){if(IR&&typeof e[IR]=="function"&&LE)return LE(e,{depth:d-i});if(o!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(C$(e)){var E=[];return JH.call(e,function(j,ne){E.push(h(ne,e,!0)+" => "+h(j,e))}),AR("Map",RC.call(e),E,u)}if(S$(e)){var S=[];return e$.call(e,function(j){S.push(h(j,e))}),AR("Set",OC.call(e),S,u)}if(w$(e))return GS("WeakMap");if(x$(e))return GS("WeakSet");if(y$(e))return GS("WeakRef");if(p$(e))return zg(h(Number(e)));if(_$(e))return zg(h(EE.call(e)));if(m$(e))return zg(r$.call(e));if(g$(e))return zg(h(String(e)));if(!h$(e)&&!DR(e)){var w=kb(e,h),x=kR?kR(e)===Object.prototype:e instanceof Object||e.constructor===Object,D=e instanceof Object?"":"null prototype",M=!x&&ir&&Object(e)===e&&ir in e?QI.call(Wc(e),8,-1):D?"Object":"",W=x||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",z=W+(M||D?"["+Fo.call(xR.call([],M||[],D||[]),": ")+"] ":"");return w.length===0?z+"{}":u?z+"{"+IE(w,u)+"}":z+"{ "+Fo.call(w,", ")+" }"}return String(e)};function CB(r,e,t){var i=(t.quoteStyle||e)==="double"?'"':"'";return i+r+i}function u$(r){return Xl.call(String(r),/"/g,""")}function TE(r){return Wc(r)==="[object Array]"&&(!ir||!(typeof r=="object"&&ir in r))}function h$(r){return Wc(r)==="[object Date]"&&(!ir||!(typeof r=="object"&&ir in r))}function DR(r){return Wc(r)==="[object RegExp]"&&(!ir||!(typeof r=="object"&&ir in r))}function f$(r){return Wc(r)==="[object Error]"&&(!ir||!(typeof r=="object"&&ir in r))}function g$(r){return Wc(r)==="[object String]"&&(!ir||!(typeof r=="object"&&ir in r))}function p$(r){return Wc(r)==="[object Number]"&&(!ir||!(typeof r=="object"&&ir in r))}function m$(r){return Wc(r)==="[object Boolean]"&&(!ir||!(typeof r=="object"&&ir in r))}function wB(r){if(Nf)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!kE)return!1;try{return kE.call(r),!0}catch{}return!1}function _$(r){if(!r||typeof r!="object"||!EE)return!1;try{return EE.call(r),!0}catch{}return!1}var b$=Object.prototype.hasOwnProperty||function(r){return r in this};function Hl(r,e){return b$.call(r,e)}function Wc(r){return s$.call(r)}function v$(r){if(r.name)return r.name;var e=a$.call(o$.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function yB(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,i=r.length;te.maxStringLength){var t=r.length-e.maxStringLength,i="... "+t+" more character"+(t>1?"s":"");return SB(QI.call(r,0,e.maxStringLength),e)+i}var n=Xl.call(Xl.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,k$);return CB(n,"single",e)}function k$(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+l$.call(e.toString(16))}function zg(r){return"Object("+r+")"}function GS(r){return r+" { ? }"}function AR(r,e,t,i){var n=i?IE(t,i):Fo.call(t,", ");return r+" ("+e+") {"+n+"}"}function L$(r){for(var e=0;e1&&typeof t!="boolean")throw new af('"allowMissing" argument must be a boolean');if(UH(/^%?[^%]*%?$/,e)===null)throw new Af("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=qH(e),n=i.length>0?i[0]:"",s=GH("%"+n+"%",t),o=s.name,a=s.value,l=!1,c=s.alias;c&&(n=c[0],$H(i,HH([0,1],c)));for(var d=1,u=!0;d=i.length){var p=Rd(a,h);u=!!p,u&&"get"in p&&!("originalValue"in p.get)?a=p.get:a=a[h]}else u=AC(a,h),a=a[h];u&&!l&&(lf[o]=a)}}return a},pB={exports:{}};(function(r){var e=KI,t=YI,i=t("%Function.prototype.apply%"),n=t("%Function.prototype.call%"),s=t("%Reflect.apply%",!0)||e.call(n,i),o=t("%Object.getOwnPropertyDescriptor%",!0),a=t("%Object.defineProperty%",!0),l=t("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}r.exports=function(u){var h=s(e,n,arguments);if(o&&a){var f=o(h,"length");f.configurable&&a(h,"length",{value:1+l(0,u.length-(arguments.length-1))})}return h};var c=function(){return s(e,i,arguments)};a?a(r.exports,"apply",{value:c}):r.exports.apply=c})(pB);var mB=YI,_B=pB.exports,KH=_B(mB("String.prototype.indexOf")),YH=function(e,t){var i=mB(e,!!t);return typeof i=="function"&&KH(e,".prototype.")>-1?_B(i):i},ZH={},XH=Object.freeze(Object.defineProperty({__proto__:null,default:ZH},Symbol.toStringTag,{value:"Module"})),QH=LH(XH),ZI=typeof Map=="function"&&Map.prototype,zS=Object.getOwnPropertyDescriptor&&ZI?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,RC=ZI&&zS&&typeof zS.get=="function"?zS.get:null,JH=ZI&&Map.prototype.forEach,XI=typeof Set=="function"&&Set.prototype,jS=Object.getOwnPropertyDescriptor&&XI?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,OC=XI&&jS&&typeof jS.get=="function"?jS.get:null,e$=XI&&Set.prototype.forEach,t$=typeof WeakMap=="function"&&WeakMap.prototype,Op=t$?WeakMap.prototype.has:null,i$=typeof WeakSet=="function"&&WeakSet.prototype,Mp=i$?WeakSet.prototype.has:null,n$=typeof WeakRef=="function"&&WeakRef.prototype,yR=n$?WeakRef.prototype.deref:null,r$=Boolean.prototype.valueOf,s$=Object.prototype.toString,o$=Function.prototype.toString,a$=String.prototype.match,QI=String.prototype.slice,Xl=String.prototype.replace,l$=String.prototype.toUpperCase,SR=String.prototype.toLowerCase,bB=RegExp.prototype.test,xR=Array.prototype.concat,Fo=Array.prototype.join,c$=Array.prototype.slice,ER=Math.floor,EE=typeof BigInt=="function"?BigInt.prototype.valueOf:null,qS=Object.getOwnPropertySymbols,kE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Nf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ir=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Nf?"object":"symbol")?Symbol.toStringTag:null,vB=Object.prototype.propertyIsEnumerable,kR=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function LR(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||bB.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var i=r<0?-ER(-r):ER(r);if(i!==r){var n=String(i),s=QI.call(e,n.length+1);return Xl.call(n,t,"$&_")+"."+Xl.call(Xl.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Xl.call(e,t,"$&_")}var LE=QH,TR=LE.custom,IR=wB(TR)?TR:null,d$=function r(e,t,i,n){var s=t||{};if(Hl(s,"quoteStyle")&&s.quoteStyle!=="single"&&s.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Hl(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=Hl(s,"customInspect")?s.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Hl(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Hl(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=s.numericSeparator;if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return SB(e,s);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return a?LR(e,l):l}if(typeof e=="bigint"){var c=String(e)+"n";return a?LR(e,c):c}var d=typeof s.depth=="undefined"?5:s.depth;if(typeof i=="undefined"&&(i=0),i>=d&&d>0&&typeof e=="object")return TE(e)?"[Array]":"[Object]";var u=T$(s,i);if(typeof n=="undefined")n=[];else if(yB(n,e)>=0)return"[Circular]";function h(j,ne,J){if(ne&&(n=c$.call(n),n.push(ne)),J){var N={depth:s.depth};return Hl(s,"quoteStyle")&&(N.quoteStyle=s.quoteStyle),r(j,N,i+1,n)}return r(j,s,i+1,n)}if(typeof e=="function"&&!DR(e)){var f=v$(e),g=kb(e,h);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(g.length>0?" { "+Fo.call(g,", ")+" }":"")}if(wB(e)){var p=Nf?Xl.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):kE.call(e);return typeof e=="object"&&!Nf?zg(p):p}if(E$(e)){for(var _="<"+SR.call(String(e.nodeName)),v=e.attributes||[],b=0;b",_}if(TE(e)){if(e.length===0)return"[]";var C=kb(e,h);return u&&!L$(C)?"["+IE(C,u)+"]":"[ "+Fo.call(C,", ")+" ]"}if(f$(e)){var y=kb(e,h);return!("cause"in Error.prototype)&&"cause"in e&&!vB.call(e,"cause")?"{ ["+String(e)+"] "+Fo.call(xR.call("[cause]: "+h(e.cause),y),", ")+" }":y.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Fo.call(y,", ")+" }"}if(typeof e=="object"&&o){if(IR&&typeof e[IR]=="function"&&LE)return LE(e,{depth:d-i});if(o!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(C$(e)){var E=[];return JH.call(e,function(j,ne){E.push(h(ne,e,!0)+" => "+h(j,e))}),AR("Map",RC.call(e),E,u)}if(S$(e)){var S=[];return e$.call(e,function(j){S.push(h(j,e))}),AR("Set",OC.call(e),S,u)}if(w$(e))return GS("WeakMap");if(x$(e))return GS("WeakSet");if(y$(e))return GS("WeakRef");if(p$(e))return zg(h(Number(e)));if(_$(e))return zg(h(EE.call(e)));if(m$(e))return zg(r$.call(e));if(g$(e))return zg(h(String(e)));if(!h$(e)&&!DR(e)){var w=kb(e,h),x=kR?kR(e)===Object.prototype:e instanceof Object||e.constructor===Object,D=e instanceof Object?"":"null prototype",M=!x&&ir&&Object(e)===e&&ir in e?QI.call(Wc(e),8,-1):D?"Object":"",W=x||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",z=W+(M||D?"["+Fo.call(xR.call([],M||[],D||[]),": ")+"] ":"");return w.length===0?z+"{}":u?z+"{"+IE(w,u)+"}":z+"{ "+Fo.call(w,", ")+" }"}return String(e)};function CB(r,e,t){var i=(t.quoteStyle||e)==="double"?'"':"'";return i+r+i}function u$(r){return Xl.call(String(r),/"/g,""")}function TE(r){return Wc(r)==="[object Array]"&&(!ir||!(typeof r=="object"&&ir in r))}function h$(r){return Wc(r)==="[object Date]"&&(!ir||!(typeof r=="object"&&ir in r))}function DR(r){return Wc(r)==="[object RegExp]"&&(!ir||!(typeof r=="object"&&ir in r))}function f$(r){return Wc(r)==="[object Error]"&&(!ir||!(typeof r=="object"&&ir in r))}function g$(r){return Wc(r)==="[object String]"&&(!ir||!(typeof r=="object"&&ir in r))}function p$(r){return Wc(r)==="[object Number]"&&(!ir||!(typeof r=="object"&&ir in r))}function m$(r){return Wc(r)==="[object Boolean]"&&(!ir||!(typeof r=="object"&&ir in r))}function wB(r){if(Nf)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!kE)return!1;try{return kE.call(r),!0}catch{}return!1}function _$(r){if(!r||typeof r!="object"||!EE)return!1;try{return EE.call(r),!0}catch{}return!1}var b$=Object.prototype.hasOwnProperty||function(r){return r in this};function Hl(r,e){return b$.call(r,e)}function Wc(r){return s$.call(r)}function v$(r){if(r.name)return r.name;var e=a$.call(o$.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function yB(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,i=r.length;te.maxStringLength){var t=r.length-e.maxStringLength,i="... "+t+" more character"+(t>1?"s":"");return SB(QI.call(r,0,e.maxStringLength),e)+i}var n=Xl.call(Xl.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,k$);return CB(n,"single",e)}function k$(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+l$.call(e.toString(16))}function zg(r){return"Object("+r+")"}function GS(r){return r+" { ? }"}function AR(r,e,t,i){var n=i?IE(t,i):Fo.call(t,", ");return r+" ("+e+") {"+n+"}"}function L$(r){for(var e=0;e=0)return!1;return!0}function T$(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=Fo.call(Array(r.indent+1)," ");else return null;return{base:t,prev:Fo.call(Array(e+1),t)}}function IE(r,e){if(r.length===0)return"";var t=` `+e.prev+e.base;return t+Fo.call(r,","+t)+` `+e.prev}function kb(r,e){var t=TE(r),i=[];if(t){i.length=r.length;for(var n=0;n1;){var t=e.pop(),i=t.obj[t.prop];if(hd(i)){for(var n=[],s=0;s=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||s===U$.RFC1738&&(c===40||c===41)){a+=o.charAt(l);continue}if(c<128){a=a+xo[c];continue}if(c<2048){a=a+(xo[192|c>>6]+xo[128|c&63]);continue}if(c<55296||c>=57344){a=a+(xo[224|c>>12]+xo[128|c>>6&63]+xo[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|o.charCodeAt(l)&1023),a+=xo[240|c>>18]+xo[128|c>>12&63]+xo[128|c>>6&63]+xo[128|c&63]}return a},Y$=function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],n=0;n0?v.join(",")||null:void 0}];else if(Fa(l))W=l;else{var z=Object.keys(v);W=c?z.sort(c):z}for(var j=n&&Fa(v)&&v.length===1?t+"[]":t,ne=0;ne0?g+f:""},Rf=EB,AE=Object.prototype.hasOwnProperty,lU=Array.isArray,wn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Rf.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},cU=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},TB=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},dU="utf8=%26%2310003%3B",uU="utf8=%E2%9C%93",hU=function(e,t){var i={},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,s=t.parameterLimit===1/0?void 0:t.parameterLimit,o=n.split(t.delimiter,s),a=-1,l,c=t.charset;if(t.charsetSentinel)for(l=0;l-1&&(g=lU(g)?[g]:g),AE.call(i,f)?i[f]=Rf.combine(i[f],g):i[f]=g}return i},fU=function(r,e,t,i){for(var n=i?e:TB(e,t),s=r.length-1;s>=0;--s){var o,a=r[s];if(a==="[]"&&t.parseArrays)o=[].concat(n);else{o=t.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=parseInt(l,10);!t.parseArrays&&l===""?o={0:n}:!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&t.parseArrays&&c<=t.arrayLimit?(o=[],o[c]=n):l!=="__proto__"&&(o[l]=n)}n=o}return n},gU=function(e,t,i,n){if(!!e){var s=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=i.depth>0&&o.exec(s),c=l?s.slice(0,l.index):s,d=[];if(c){if(!i.plainObjects&&AE.call(Object.prototype,c)&&!i.allowPrototypes)return;d.push(c)}for(var u=0;i.depth>0&&(l=a.exec(s))!==null&&u